Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Latest commit

 

History

History
49 lines (34 loc) · 943 Bytes

2-Installation-and-Setup.md

File metadata and controls

49 lines (34 loc) · 943 Bytes

2. Installation

Composer

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.

Setup

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,
],

Artisan commands

To publish the config & migrations files, run this command:

$ php artisan vendor:publish --provider="Arcanedev\Settings\SettingsServiceProvider"