hongyukeji/laravel-setting

v1.0.0 2020-08-11 11:29 UTC

This package is auto-updated.

Last update: 2024-12-11 20:58:38 UTC


README

LaravelSetting composer package.

Install

$ composer require hongyukeji/laravel-setting:*@dev
$ php artisan vendor:publish --provider="Hongyukeji\LaravelSetting\SettingServiceProvider"

Usage

# get
setting('website.site_name')

# set
setting([
    'website.site_name' => 'Example',
    'website.site_title' => 'Index - Example',
    'example' => 'This is an example.',
]);

# remove
setting()->forget('example')