PHP code example of luffluo / laravel-settings
1. Go to this page and download the library: Download luffluo/laravel-settings library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
luffluo / laravel-settings example snippets
setting('key', 'default'); // get
setting(['key' => 'value'])->save(); // set
setting()->all(); // get all
setting()->forget('key')->save(); // forget
setting()->forgetAll()->save(); // forget all
shell
php artisan vendor:publish --provider="Luffluo\LaravelSettings\ServiceProvider" --tag="config"