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