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
Check this: http://stackoverflow.com/questions/23896031/how-to-save-entries-in-many-to-many-polymorp...
I suggest some remodeling: // Lists model public function getSubscribersCountAttribute() { if ( !...
You can use scope for that, that's probably all: // Airport model public function scopeSearchWithCit...
Your GameTeam model should extend Model (Eloquent), not Pivot, if you want to work with it like an o...
mcraz said: You are a bit wrong ;) First off to answer OP question: $model->relation // dynam...
The Laravel portal for problem solving, knowledge sharing and community building.