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
First off, you don't need to return anything from the scope (however you may do so): public function...
Why don't you execute queries to do this, instead of filtering collections? I think it would be bett...
It's PDO, not Eloquent itself. Check this: https://github.com/laravel/framework/pull/5004
No, as long as primaryKey on the model is set (or it's default id field). If you get empty array, th...
It depends on what you are trying to achieve. For example you could convert to and merge base collec...
The Laravel portal for problem solving, knowledge sharing and community building.