hpolthof/laravel-eloquent-settings
Allow for dynamic blobbed settings in Eloquent models.
This package was created for an internal project, but as the idea is reusable, I encourage others to make use of this package.
The main goal was to create a way to store variables dynamicly into a database field without having to rewrite the database structure.
Usage
Just use the HasSettings trait in your Eloquent model and add a field named settings to your table with a type of MEDIUMTEXT.
You can also use another field name, but be sure to set the protected $settingsField to that specific fieldname.
Related Packages
audunru/eager-load-pivot-relations
Eager load pivot relations for Laravel Eloquent's BelongsToMany relation.
74,541
9
atoms/database-illuminate
Illuminate bridge for Atoms: the Laravel query builder and Eloquent models again...
16
0
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| v0.1.7 | >=5.4.0 | GPL2 | |
| v0.1.6 | >=5.4.0 | GPL2 | |
| v0.1.5 | >=5.4.0 | GPL2 | |
| v0.1.4 | >=5.4.0 | GPL2 | |
| v0.1.3 | >=5.4.0 | GPL2 | |
| v0.1.2 | >=5.4.0 | GPL2 | |
| v0.1.1 | >=5.4.0 | GPL2 |