PHP code example of orchid / settings

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

    

orchid / settings example snippets


$ composer 

$ php artisan migrate



use Orchid\Settings\Setting;

Setting::set($key, $value);



/**
* @param string|array $key
* @param string|null $default
*/
Setting::get($key, $default);
// or using the helper function
setting($key, $default);

Setting::getNoCache($key, $default = null);



/**
* @param string|array $key
* @param string|null $default
*/
Setting::forget($key);