Support the ongoing development of Laravel.io →

4,310 Threads

Add milliseconds to eloquents created_at/updated_at

Hi guys! I would really love to be able to to include milliseconds to the time fields in my models....

0 Likes
1 Replies

Eloquent LEFT JOIN WHERE NULL producing strange results

I'm trying to use Eloquent to perform the following query during a database seed: SELECT * FROM...

0 Likes
1 Replies
Solved

N+1 single view Data Retriving

Dear All, I have a problem like that. // First, I created one to many relation for Post and PostCate...

0 Likes
2 Replies
Solved

json respone related issue

Hi there, I am trying to integrate jQuery dataTables in my Laravel project but I can't seem to be ab...

0 Likes
1 Replies
Solved
posted 10 years ago

Multiple conditional eager load constraints

Hello, I'm working on a filtering system, where I need to find users which have certain properties d...

0 Likes
2 Replies

Images from database not showing in view?

Hey guys, In my application I have some images that belong to some articles. These are shown perfect...

0 Likes
5 Replies
Solved

Mutator not ran during mass assignment

I am attempting to convert a mm-dd-yyyy date from jquery-ui datepicker to a sql timestamp. My mutato...

0 Likes
0 Replies
posted 10 years ago

Eloquent : How to fetch parent table and child table in one time

Now i have product and productcategory table, and i want to show data from product and productcatego...

0 Likes
1 Replies
posted 10 years ago

Clean This.

I have a query and I have no idea how to simplify it or make sure it's correctly escaping data. I w...

0 Likes
0 Replies
posted 10 years ago

Get list with created_at of one week ago. Carbon? Eloquent?

Hello, Lets say I have a list of Users. Each user has a created_at timestamp. What I want is: List...

0 Likes
1 Replies

Using lists with eager loading

Hello! I'm trying to get "full_name" from the users table in the lists function like this:...

0 Likes
6 Replies
Solved

Foreign Keys Drop-down List

I have 2 tables: [CUSTOMERS] id, full_name, company_id [COMPANIES] id, company_name I already create...

0 Likes
3 Replies

Caching relationships and table data

Throughout querying my database with the queries as the one below; Model::with('first','second','thi...

0 Likes
2 Replies
Solved

optgroup select box

I've found a few examples of using optgroup, but they all seem to be missing what i'm looking for In...

0 Likes
0 Replies

N-ary relationships

Hi community, Does anyone know how to deal with n-ary relationships ? I managed to create a pivot ta...

0 Likes
6 Replies
Solved

Relationship with template tables

Hi, I would like to know what the best way is to retrieve data from my database with the following s...

0 Likes
5 Replies

How to select field in another table join by eager loading ?

I got category_to_news and news_main table category_to_news : news_id (int),name (varchar),title (ti...

0 Likes
0 Replies

Session Issue?

Alright so i was using a session earlier and encountered a weird "bug"? so here is my orig...

0 Likes
0 Replies

Many to many to many in whereHas()

I have an eloquent class Biblio with relationship as items() to BiblioItem which in turn has relatio...

0 Likes
11 Replies
Solved

DB Structure for product variations

I need to build a database structure that will allow us to create option sets. These sets then need...

0 Likes
3 Replies

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.