Skip to content
This repository was archived by the owner on Jun 26, 2022. It is now read-only.

Installation

Antoine B edited this page May 31, 2019 · 5 revisions
  1. Require this package with composer (packagist.org) :
$> composer require abenevaut/laravel-settings
  1. Register the ServiceProvider to the providers array in config/app.php
abenevaut\Settings\App\Providers\SettingsServiceProvider::class,
  1. Add an alias for the facade to aliases array in your config/app.php
'Settings'  => abenevaut\Settings\App\Facades\SettingsFacade::class,
  1. 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
Clone this wiki locally