PHP code example of rogerarruda / laravel-options
1. Go to this page and download the library: Download rogerarruda/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/ */
rogerarruda / laravel-options example snippets
// Get option
option('someKey');
// Set option
option(['someKey' => 'someValue']);
// Check the option exists
option_exists('someKey');
use RogerArruda\LaravelOptions\Models\Option;
$check = Option::exists('someKey');
bash
php artisan option:set {someKey} {someValue}