Laravel Packages / updated: July 19, 2016

Esensi Model Traits

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.

Laravel News Partners

Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.