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 don't need to use raw query. Instead you can do something like below, for hasMany: $parentKey =...
Adam, not really, no. It will just set the relations, but it won't really link them (associate, atta...
After some tinkering I made that replicate recursive and it does basically what OP needs. However it...
Unfortunately this won't create related objects just like that. And it also won't create relations o...
First off, you don't need to return anything from the scope (however you may do so): public function...
The Laravel portal for problem solving, knowledge sharing and community building.