An open API service indexing awesome lists of open source software.

https://github.com/hongyukeji/laravel-setting


https://github.com/hongyukeji/laravel-setting

Last synced: 4 months ago
JSON representation

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')
```