hpolthof/laravel-eloquent-settings

Allow for dynamic blobbed settings in Eloquent models.

Installs: 52

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/hpolthof/laravel-eloquent-settings

v0.1.7 2019-08-01 14:03 UTC

This package is auto-updated.

Last update: 2025-09-29 01:49:44 UTC


README

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.