If you ever created complex global scope constraint, you must have faced a challenge with defining r...
Pretty much every app needs decent search engine. Nowadays specialized engines like ElasticSearch ar...
Do you use Eloquent in your apps? It's simply fun to work with, right? I think the same, but after s...
I want to introduce nice and useful package for DB revisions. It works out of the box with Eloquent...
Explained here: http://laravel.io/bin/rr4QQ#8,44
Eloquent\Collection is supposed to work with Eloquent Models, that's why it will cause errors. You c...
If you need id as the key, then rely on the Collection: $collection = Model::all(); $collection->...
First off, why don't you create schema like this: members: id, name events: id, name event_member (p...
Your join method needs one more param ('=' in most cases): ->join('role', 'movie_credits.role_id...
Model::selectRaw('count(*), min(some_field) as someMin, max(another_field) as someMax')->first();...
The Laravel portal for problem solving, knowledge sharing and community building.