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
Accessor will do the job: // User model public function getMetadataAttribute() { return $this-&g...
First collect needed constraints from Input, then apply where() in a loop for whereHas() For this u...
Depends totally on your app. Are those categories relevant to all the models you listed, or every mo...
First off this is so unreadable, so spotting the error for you must be a pain. Try to make your code...
// for clarity I suggest renaming your relation to plural on ProductCategory model: public function...
The Laravel portal for problem solving, knowledge sharing and community building.