PHP code example of wimil / settings

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

    

wimil / settings example snippets


Wimil\Settings\Provider::class,

'Settings' => Wimil\Settings\Facade::class,

Settings::get('foo');
Settings::set('foo', 'bar');
$settings = Settings::all();

settings('foo');
settings('foo', 'bar');
$settings = settings();

use Wimil\Settings\Model\Setting as BaseSetting;
class Setting extends BaseSetting {

}
bash
php artisan vendor:publish --provider="Wimil\Settings\Provider"