1. Go to this page and download the library: Download mr-luke/settings-manager 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/ */
mr-luke / settings-manager example snippets
'bags' => [
'general' => [ // Given key is used as a Bag name
'driver' => 'database', // One of available drivers
'cache' => true, // Should be Cached
'lifetime' => 60 // Cache lifetime in minutes
],
],
// Get index
settings(string $key);
// Set value
settings([string $key => $value]);
// Get instance and perform action
settings()->forget(string $key);
bash
php artisan vendor:publish
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.