PHP code example of mlk9 / setting-laravel

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

    

mlk9 / setting-laravel example snippets

sh
php artisan vendor:publish --tag=setting-laravel
sh
php artisan migrate
sh
Setting::set('KEY_NAME','VALUE'); 
//or
Setting::set([
'KEY_NAME' => 'VALUE',
'KEY_NAME' => 'VALUE'
]); 
sh
public function boot()
   {
    Config::set('services.example.exam1',Setting::get('example.exam'));
   }