Christopher presents Eloquent's polymorphic relationships in a human-friendly way - come learn what they're all about and master this awesome ORM!
Tag: eloquent
Re-Introducing Eloquent’s Polymorphic Relationships
Eloquent & Polymorphic Relations: Overview and Usage Guide
In this "next level Laravel" post, Younes explains an interesting approach to designing relationships with Eloquent: polymorphic relations.
Quick Tip: The Convenient Magic of Eloquent Observers
Younes presents Eloquent Observers - a method of subscribing to changed on models and having those models notify all subscribers of changes. Check it out!
Extending OctoberCMS – Building a Soft-Delete Plugin
Younes extends OctoberCMS by building a soft-delete plugin, allowing you to delete posts by marking them as trashed, while still keeping them in the DB!
Modeling an Aggregate with Eloquent
Andrew Cairns explains the Aggregate pattern and implements it on top of Laravel's Eloquent. Feeling the pro thirst? Give this advanced tutorial a go!
Ardent: Laravel Models on Steroids
Francesco Malatesta introduces Ardent, a way to improve your Laravel models with auto-validation and auto-hydration