Installation¶
Laravel Scoped Settings can be easily installed via Composer and integrates automatically with Laravelβs package discovery system.
π¦ Requirements¶
- PHP >= 8.1
- Laravel 10 or 11
- Composer
π Install the package¶
Use Composer to install the package:
composer require danielemontecchi/laravel-scoped-settings
Laravel will auto-discover the service provider and facade.
π§ Publish configuration (optional)¶
You can publish the default configuration and migration files using:
php artisan vendor:publish --tag="laravel-scoped-settings-config"
php artisan vendor:publish --tag="laravel-scoped-settings-migrations"
This allows you to customize the database structure or config options as needed.
ποΈ Run the migration¶
Create the settings
table:
php artisan migrate
π§ͺ Run tests (optional)¶
To make sure everything is working, you can run the test suite:
./vendor/bin/pest
π Continue with usage¶
Once installed, proceed to the Usage guide to learn how to store and retrieve settings.