1. Go to this page and download the library: Download soap/laravel-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/ */
soap / laravel-settings example snippets
return [
'table' => 'settings',
];
// Pass `true` to ignore cached settings
settings()->all($fresh = false);
// Get a single setting
settings()->get($key, $default = null);
// Set a single setting
settings()->set($key, $value);
// Set a multiple settings
settings()->set([
'app_name' => 'Laravel',
'app_email' => '[email protected]',
'app_type' => 'SaaS'
]);
// check for setting key
settings()->has($key);
// remove a setting
settings()->remove($key);