PHP code example of kamekun / kame-settings
1. Go to this page and download the library: Download kamekun/kame-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/ */
kamekun / kame-settings example snippets
// Parameters: key, value
Setting::get('foo', 'default');
// Parameters: key, value, readOnly (optional, default false)
Setting::set('foo', 'default', true);
// Note: (ReadOnly attributes are for properties/configuration that shouldn't delete from the backend panel)
bash
php artisan vendor:publish --tag="Kamekun\\KameSettings\\KameSettingsServiceProvider"
bash
php artisan migrate