glorand/laravel-model-settings
Add per-model settings to Laravel Eloquent with an easy API to get/set/check/remove values. Choose storage via JSON field, separate settings table, or Redis. Supports defaults, validation, and persistence for user or entity preferences.
settings table.User, Company, or Product models).Settings::for($user)->get('theme')).config() or env()).For Executives:
"This package lets us ship tenant-specific configurations (e.g., per-company branding or feature flags) 10x faster by eliminating manual database table setup and CRUD logic. For example, instead of writing 50 lines of code to manage settings for a new Organization model, we’d use a single trait. It’s battle-tested (900+ stars), MIT-licensed, and aligns with our Laravel stack—reducing technical debt while enabling rapid iteration for our multi-tenant roadmap."
For Engineering: *"Laravel Model Settings gives us a clean, type-safe API to attach settings to any Eloquent model. Key benefits:
\Glorand\Settings\Traits\HasSettings to any model to enable settings.public string $theme = 'dark').HasSettings to the User model and define public bool $dark_mode = false—no migrations or controllers needed. It’s a force multiplier for config-heavy features."*How can I help you explore Laravel packages today?