PHP code example of soandso / laravel-options

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

    

soandso / laravel-options example snippets

 artisan vendor:publish --provider="Soandso\LaravelOptions\OptionProvider" 
 artisan migrate

use Soandso\LaravelOptions\Option;

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

Option::get($key);

Option::exists($key);

Option::destroyByKey($key);

setOption($key, $value)

getOption($key)

existsOption($key)

destroyOption($key)

 php artisan option:clear
 

 php artisan option:clear <date>
 
bash
$ php composer.phar install
bash
$ php composer.phar