{"repo":"esensi/model","free":true,"listed":false,"github":"https://github.com/esensi/model","clone":"git clone https://github.com/esensi/model.git","description":"The base model traits of Esensi","language":"PHP","stars":200,"topics":["model","traits","laravel","esensi"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Esensi Model Traits Package Version 3 An Esensi package, coded by SiteRocket Labs®. The Esensi/Model package is just one package that makes up Esensi, a platform built on Laravel. This package uses PHP traits to extend Laravel's default Eloquent models and traits. Using traits allows for a high-degree of code reusability and extensibility. While this package provides some reasonable base models, developers are free to mix and match traits in any combination needed, being confident that the code complies to a reliable interface and is properly unit tested. For more details on the inner workings of the traits please consult the generously documented source code. Note This code is specifically designed to be compatible with the Laravel Framework ^10 and may not be compatible as a stand-alone dependency or as part of another framework. Extend the Default Model The simplest way to demonstrate the traits is to extend the base Esensi\\Model\\Model . For example, if the application requires a simple blog, then the developer could create a Post model that automatically handles validation, purging, hashing, encrypting, attribute type juggling and even simplified relationship bindings by simply extending this ready-to-go model: Pro Tip: The more lean way to use Esensi\\Model traits is to consume traits on the individual models instead of creating an inheritance dependency. Take a look at the generously commented Esensi\\Model\\Model source code for details on how to use individual traits wit","default_branch":null,"files":null,"tree":[],"storefront":"/r/esensi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/esensi/model/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}