hongyukeji / laravel-setting
v1.0.0
2020-08-11 11:29 UTC
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2024-11-11 20:46:46 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')