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
The problem is that you use wrong relation for this. Many to many is belongsToMany and hasMany works...
In fact you are wrong about Eloquent with as it's not working dynamically like where
whereHas can't do it as it doesn't know what tables it should check. In fact polymorphic relations h...
The error doesn't come from the code you showed, it's probably in the view and the reason for that i...
If it's foreign key then you can't update it this way. Instead use detach and attach methods. Otherw...
The Laravel portal for problem solving, knowledge sharing and community building.