ypppa / model
Abstract Eloquent style Model.
Installs: 3 135
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=7.1
This package is not auto-updated.
Last update: 2024-09-14 17:53:39 UTC
README
This model provides an eloquent-like base class that can be used to build custom models in Laravel or other frameworks.
Features
- Accessors and mutators
- Model to Array and JSON conversion
- Hidden attributes in Array/JSON conversion
- Appending accessors and mutators to Array/JSON conversion
- Guard/Unguard attributes from mass assign
- Attribute casting
- Control attributes case in Array/JSON representation
You can read more about these features and the original Eloquent model on http://laravel.com/docs/eloquent