Skip to content

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.