$posts=Post::with(['comment' => function($query) { $query->orderBy('created_at', 'desc'); $que...
Hi, I am trying to use my helper function from services.php file. But it dose not work for me. If i...
I have a model with a getURL() method. when I query and return a list of models which I pass to my v...
Hello all, I'm struggling with the following problem. I have three tables - Users, Groups and Roles....
I'm trying to make a generic model for all tables. But I have a strange problem. If I try this: $thi...
Hello all, I have two models which are related. I am trying to do a search in Products and only disp...
When I do: DB::beginTransaction(); //T1 Device::insert(array("submit_hash" => "tri...
A promising Eloquent Driver for Graph Databases is in the works: https://github.com/Vinelab/NeoEloqu...
The two timestamps have different values regarding of timezone config. After inserting and loging in...
This sounds like it should be a pretty simple thing to do but I'm trying to wrap my brain around it...
On webhosting in MySQL I have created in database set of db-tables and couple of db-views. Everythin...
I have a one-to-many relationship that is not working. A 'Client' has many 'Athletes'. I have alread...
I am creating a Lease Preview for Printing for our Rental company and I'd like to be able to provide...
All, I just started using laravel and want to connect to an existing ibm db2 database with uppercase...
Hello, I'm trying to set up an Observer for a pivot model, but I've got an error. User model public...
I am having issues when creating my own paginator that the same collection of rows is always returns...
HI I have a DATE mysql column and i wish to change the stored format from YYYY-MM-DD to dd-mm-yyyy w...
This is happening in L5.1 with a "user" eloquent model, and only for the "email"...
How can I get date from "2015-07-31 06:03:21" using Laravel query builder? In normal query...
i am writing a generic database browse/update so i have to create a new class for each table i want...
Solutions given in the past year. Excluding solutions from thread authors.
Select a tag below to filter the results
The Laravel portal for problem solving, knowledge sharing and community building.
The community