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
You use get(['id']) so Eloquent can't match loaded user(s) with relation parent - url. You need to s...
Highlighted part: where( DB::raw('1'), '<', function ($q) { $q->from('items as i2') -&...
The thing is, you want to use where not on. Difference between the two is, that you use on() to comp...
Quick note: Model::find($id); // is exactly the same as: Model::where('id','=',$id)->first(); Ab...
UPDATE Below is example for Laravel4. In Laravel5 method signatures changed a bit, so read this inst...
The Laravel portal for problem solving, knowledge sharing and community building.