A must-read for everyone working with Laravel Eloquent:
This article is all about Laravel Eloquent. We love it, we use it, but there are a lot of hidden gems! For example:
- Did you know about invisible database columns?
- Or did you know that you can write an attribute accessor and mutator in one method using the Attribute cast?
- ...And don't forget about the Prunable trait!
In this article, you can read about my 36 favorite Eloquent recipes.