Hi, how can I transcribe this sql select with Eloquent? SELECT * FROM player WHERE concat(YEAR(CURDA...
I'm trying to get the max value of a column in the database, so I'm using something like $maxVal = m...
The documentation for https://github.com/jenssegers/laravel-mongodb doesn't go into much detail abou...
I have the following tables: Table: clients Schema::create('clients', function(Blueprint $table) {...
Hi guys, I'm wondering how to deal with this situation: I have this structure: Ingredients (basic li...
Is it possible to create "lazy DB connection" in Laravel on easy way? If my app cache all...
Hello, When I fill in a form, the fields created_at and updated_at will be filled in, all ok. I have...
i have this $data = ['name' =>'Name', 'observation' => "concat($obervation, 'observation'...
I want to create my db schema, model and relations by using "http://laravelsd.com/" and wa...
Hi, I don't understand why I can't access my "reductions" array in my javascript. (Referen...
This seems really simple (and probably is), but it doesn't seem to be covered in the documentation....
Per the docs, I was expecting Eloquent to automatically fill created_at and updated_at attributes. h...
I'm using the master branch of laravel which is currently pointing to 5.1 I'm trying to get the id o...
I would like to sort items by column relation in laravel (5.1) I have a database table called intere...
I have 3 tables Course , Lesson , Assets A Course will have multiple Lessons and 1 Lesson will be li...
I'd like to know if the accessors and mutators could be (ab)used for this purpose, from what I gathe...
Hello everyone, Basically what I'm trying to do is "count" the number of records that two...
Hi, I had a BelongsToMany database schema that worked great, but I added a new table with fk and can...
Hi, I want to build this query out of eloquent (I know you can with QB but for sake of elegance and...
Hi, I'm using Eloquent to retrieve results with a chunk. With large collections, the closure seems t...
Solutions given in the past year. Excluding solutions from thread authors.
The Laravel portal for problem solving, knowledge sharing and community building.
The community