PHP code example of amdad121 / setting-laravel

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

    

amdad121 / setting-laravel example snippets


use AmdadulHaq\Setting\Models\Setting;

Setting::set('app_name', 'Laravel');

return Setting::get('name');
// Laravel

return Setting::remove('name');
// true

setting()->set('app_name', 'Laravel');

return setting()->get('app_name');
// Laravel

return setting()->remove('app_name');
// true
bash
php artisan vendor:publish --tag="setting-laravel-migrations"
php artisan migrate