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 need global scope for this, not the query scopes. That culttt rather not the way to go. Here you...
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...
The Laravel portal for problem solving, knowledge sharing and community building.