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
@shabushabu not entirely true: @l4zl0w To get what you wanted, do as shabu said. But still you can u...
You need to use this for setting sql variable: DB::statement(DB::raw('set @sum=0')); Then goes your...
Your code will work for this kind of relation but you need to select also all foreign keys to let El...
You can't do that with eager loading. In fact you have not succeeded to paginate the comments, you o...
You need to swap the keys on the belongsToMany relation definition, but in fact, this is not the rel...
The Laravel portal for problem solving, knowledge sharing and community building.