PHP code example of bleuren / laravel-setting

1. Go to this page and download the library: Download bleuren/laravel-setting 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/ */

    

bleuren / laravel-setting example snippets


$value = Setting::get('some_key', 'default_value');

Setting::set('some_key', 'new_value', 'Optional description');
bash
php artisan vendor:publish --tag=laravel-setting
bash
php artisan migrate
bash
php artisan setting:clear