Esensi Model Traits
Published on by Eric L. Barnes
Esensi Model Traits is a collection of “common sense” utility traits you can use to extend Laravel’s default Eloquent models and traits. The goal of the package is to quickly and easily add validation, purging, hashing, encrypting, attribute type juggling, soft deletes, and even simplified relationship bindings to Eloquent.
I asked Matthew Malinowski what problems this package tries to address:
We found ourselves regularly reimplementing the same functionality for model after model in our projects, and from the popularity of this project, we know we’re not alone in this. We standardized this collection of straightforward traits to move the starting line far forward for new Eloquent models.
The package is heavily documented with plenty of code examples which is always a bonus. Give it a look if you’d like to save time implementing any of these features into your app.
Eric is the creator of Laravel News and has been covering Laravel since 2012.