This repository was archived by the owner on Jun 26, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Antoine B edited this page May 31, 2019
·
5 revisions
- Require this package with composer (packagist.org) :
$> composer require abenevaut/laravel-settings
- Register the ServiceProvider to the
providers
array inconfig/app.php
abenevaut\Settings\App\Providers\SettingsServiceProvider::class,
- Add an alias for the facade to
aliases
array in yourconfig/app.php
'Settings' => abenevaut\Settings\App\Facades\SettingsFacade::class,
- Publish the config and migration files now :
$> php artisan vendor:publish --provider="abenevaut\Settings\App\Providers\SettingsServiceProvider" --force
Change config/settings.php
according to your needs. If you change db_table
var, don't forget to create a migration file to update the table as well.
Create the settings
table.
$> php artisan migrate