lukasss93/laravel-model-settings
Add per-model settings to Eloquent with defaults, validation rules, and optional config publishing. Store and retrieve settings directly on your models, initialize settings on creation, and keep your app flexible with PHP 8+ and Laravel 8+ support.
$user->settings()->get('theme') vs. manual JSON parsing).jenssegers/laravel-mongodb.For Executives: "This package lets us ship user-specific configurations (e.g., dark mode, notification preferences) 3x faster than custom solutions, while reducing bugs from manual JSON handling. It’s a low-risk investment—MIT-licensed, Laravel-native, and used by [hypothetical similar companies]. For a SaaS product, this could unlock per-customer customization without engineering overhead."
For Engineers: *"Leverage this to:
User::find(1)->settings()->get('theme')).settingsRules() for required fields).initSettings = true).
Zero migration pain—just add the trait and start using `$model->settings()->set('key', 'value')."For PMs: *"This supports our 2024 roadmap by:
experimental_feature per user)..env or hardcoded configs.How can I help you explore Laravel packages today?