linbaima/laravel-setting

system config setting.

dev-master 2022-06-16 06:27 UTC

This package is not auto-updated.

Last update: 2025-06-13 19:31:08 UTC


README

Chinese to robot translator for Laravel5.8

Latest Stable Version Total Downloads Latest Unstable Version License

Install

composer require linbaima/laravel-setting

php artisan vendor:publish --force

php artisan migrate --force

var_dump(setting()->set('test', 123, 'remark'));
var_dump(setting()->set(['key' => 'test', 'value' => '123', 'remark' => 'remark']));

var_dump(setting('test'));
var_dump(setting()->get('test'));

For Laravel

Add the following line to the section providers of config/app.php:

'providers' => [
    //...
    Linbaima\LaravelSetting\Providers\SettingProvider::class,
],

as optional, you can use facade:


'aliases' => [
    //...
    'Robot' => Linbaima\LaravelSetting\Facades\SettingFacade::class,
],

License

MIT