https://github.com/hongyukeji/laravel-setting
https://github.com/hongyukeji/laravel-setting
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hongyukeji/laravel-setting
- Owner: hongyukeji
- Created: 2020-08-11T11:28:46.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-11T11:30:48.000Z (almost 5 years ago)
- Last Synced: 2025-01-03T16:35:04.337Z (5 months ago)
- Language: PHP
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LaravelSetting
> LaravelSetting composer package.
## Install
```shell
$ composer require hongyukeji/laravel-setting:*@dev
``````shell
$ 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')
```