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
@mfrancois You're correct. However, this is the way to query on the instantiated model: $model->n...
Separation of responsibility. Local scope (on the model/trait) would require you to include the Soft...
Yes, this is what you need. It's in my post, which was an answer to the previous by @mengidd - didn'...
In this case you would use hasOne/hasMany, since the foreign key is on the other table of this relat...
restored is a method on SoftDeletingTrait, so just make sure you use SoftDeletingTrait.
The Laravel portal for problem solving, knowledge sharing and community building.