PHP code example of vgplay / laravel-cached-setting

1. Go to this page and download the library: Download vgplay/laravel-cached-setting 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/ */

    

vgplay / laravel-cached-setting example snippets


$key = setting('fb_app_id', '1312435342342');

set_setting('release_time', '2021-12-30 00:00:00');

use Vgplay\LaravelCachedSetting\Setting\SettingCreater;

function create(SettingCreater $creater) {
    $creater->create([
        'key' => 'fb_app_id',
        'display_name' => 'Facebook App Id',
        'data_type' => 'text',
        'type' => 'Tab 1',
        'group' => 'Social',
        'value' => '1312435342342'
    ]);
}