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're doing it wrong. Your code is inconsistent, that's the reason: $model = Model::with('someRelat...
Because of the scope. Learn this: http://php.net/manual/en/functions.anonymous.php
$phone->id_user is not default foreign key, so you should specify it in the user() relation as 2n...
You need to create a model for the pivot table (not (only) pivot model). Read this http://stackoverf...
@memii Be careful with naming relations using snake_case, since doing so means you will be unable to...
The Laravel portal for problem solving, knowledge sharing and community building.