Skip to content

Latest commit

 

History

History
84 lines (66 loc) · 4.82 KB

1-Installation-and-Setup.md

File metadata and controls

84 lines (66 loc) · 4.82 KB

1. Installation

Table of contents

  1. Installation and Setup
  2. Configuration
  3. Usage

Version Compatibility

Laravel LaravelSettings
Laravel v11.x ![LaravelSettings v11.x][laravel_settings_11_x]
Laravel v10.x LaravelSettings v10.x
Laravel v9.x LaravelSettings v9.x
Laravel v8.x LaravelSettings v8.x
Laravel v7.x LaravelSettings v7.x
Laravel v6.x LaravelSettings v6.x
Laravel v5.8 LaravelSettings v5.x
Laravel v5.7 LaravelSettings v4.x
Laravel v5.6 LaravelSettings v3.x
Laravel v5.5 LaravelSettings v2.x
Laravel v5.4 LaravelSettings v1.x
Laravel v5.3 LaravelSettings v0.x
Laravel v5.2 LaravelSettings v0.x

Composer

You can install this package via Composer by running this command:

composer require arcanedev/laravel-settings

Laravel

Setup

NOTE : The package will automatically register itself if you're using Laravel >= v5.5, so you can skip this section.

Once the package is installed, you can register the service provider in config/app.php in the providers array:

'providers' => [
    ...
    Arcanedev\LaravelSettings\SettingsServiceProvider::class,
],

Artisan commands

To publish the config file by running this command:

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

Note: If you want to publish the laravel settings' migrations, you need to set the Arcanedev\LaravelSettings\SettingsManager::$runsMigrations value to false in your ServiceProvider.