jobmetric/laravel-setting
A Laravel package for managing application settings with a flexible key-value store, letting you define, save, and retrieve configuration values at runtime. Useful for admin-editable options like site name, contact details, and feature toggles without touching config files.
Start by requiring the package and publishing its config and migration:
composer require <vendor>/<package>
php artisan vendor:publish --provider="<Vendor>\<Package>\<PackageServiceProvider>"
php artisan migrate
Look first at config/settings.php. Release 1.1.0 adds a configurable table name, so confirm the table matches your migration before writing data. The package’s primary entry points are the service/facade and the new helper function; use those for day-to-day reads and writes rather than querying the settings table directly.
A good first use case is application-wide preferences: store a value once, then read it from controllers, Blade views, or service providers via the facade or helper.
store() and forget(); in 1.1.0 store() was renamed to dispatch(). Prefer the new dispatch() name in new code and update existing calls.store() → dispatch(). Search your codebase for store( calls on the settings service and update them. The facade accessor bug fix in the same release means older facade usage may behave differently—retest any custom facade aliases.php artisan config:cache, changes to the table name or cache-related config will not take effect until you clear and rebuild the config cache. The 1.1.0 “change value config cache” item may alter cache keys/values, so clear caches after upgrading.config/settings.php and the migration is the most common setup failure..gitignore removal. Published or generated files may now be tracked differently; check your repository status after upgrading.dispatch() and forget().How can I help you explore Laravel packages today?