orchid/settings

This package is abandoned and no longer maintained. No replacement package was suggested.

Settings for The Laravel Framework.

2.2.1 2017-08-31 12:29 UTC

README

Simple key-value storage package from Laravel 5

Build Status Latest Stable Version Total Downloads License

Installation

  1. install package

    composer require orchid/settings
  2. edit config/app.php

    service provider :

    Orchid\Setting\Providers\SettingServiceProvider::class

    class aliases :

    'Setting' => Orchid\Setting\Facades\Setting::class
  3. create settings table

    php artisan vendor:publish
    php artisan migrate

Usage

use Setting;

//Add settings for key => value
Setting::set($key,$value);

// Get settings,
Setting::get($key, $default);

// Remove 
Setting::forget($key);

License

The MIT License (MIT). Please see License File for more information.