You can install this package via Composer by running this command: composer require arcanedev/settings
.
Or by adding the package to your composer.json
.
{
"require": {
"arcanedev/settings": "~1.0"
}
}
Then install it via composer install
or composer update
.
Once the package is installed, you can register the service provider in config/app.php
in the providers
array:
// config/app.php
'providers' => [
...
Arcanedev\Settings\SettingsServiceProvider::class,
],
Optional : You can also register the facade:
// config/app.php
'aliases' => [
...
'Setting' => Arcanedev\Settings\Facades\Setting::class,
],
To publish the config & migrations files, run this command:
$ php artisan vendor:publish --provider="Arcanedev\Settings\SettingsServiceProvider"