1. Go to this page and download the library: Download emresari89/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/ */
emresari89 / laravel-options example snippets
// Get all options
options();
// Get option by id
optionID($id);
// Get option
option('someKey');
// Get option, with a default fallback value if the key doesn't exist
option('someKey', 'Some default value if the key is not found');
// Set option
option(['someKey' => 'someValue']);
// Set option with type (type 1 default)
option_type(['someKey' => 'someValue'],null,2);
// Remove option
option()->remove('someKey');
// Check the option exists
option_exists('someKey');
use Option;
$check = Option::exists('someKey');
bash
php artisan option:set {someKey} {someValue}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.