I Have error “SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘0’ in ‘field list'”
When i update table, laravel is broken
On another site same code work well
chain activities based on start/end date
I have an Timeline
model with start
and end
timestamps (and other details).
Laravel replaces the connection parameter with the default one
I have a model with a connection to a different database and when I save the model the connection is returning to default one.
How to dynamically manage the ‘owners/{ownerUUID}’ prefix in Laravel API routes?
In my Laravel application, I have many duplicate routes with the prefix owners/{ownerUUID}. For example, I have a route like this:
Why Laravel “limit” clause for relationships doesn’t work as expected?
I have basically this database structure:
Grouping returned collection by a date – Laravel
I’ve got this function:
How reading data from pivot model to check if some Id found in result set?
On laravel 11 site User model has pivot reference to tasks table
Multi belongsToMany in Laravel Eloquent
I’m wondering if there’s better way than just the query it self.
How to use hasManyThrough with reference to morph table?
On laravel site with 3 related tables :
Laravel – Query models that have relationship with daily field in the given date range
I am working on a Laravel field that has a Listing
model and this model has many Price
models associated. The Price
model has a date
date field. I want to query the listings that have price entries daily for the given range, but I cannot wrap my mind around how I can achieve this with Eloquent, the only way I could do it is pulling the listings that have some prices at all and having PHP loop through the results, but that is ineffective and resource consuming. I would like to do it with SQL only. Can anybody point me towards a solution?