PHP code example of ibrand / setting

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

    

ibrand / setting example snippets


return [

    'table_name' => 'el_system_settings',

    'cache' => true,
];

settings(['key'=>'value'])

settings('key')

app('system_setting')->setSetting(['key'=>'value'])

app('system_setting')->getSetting('key')

return [

    'table_name' => 'el_system_settings',

    'cache' => false,
];
sh
php artisan vendor:publish --provider="iBrand\Component\Setting\ServiceProvider"
sh
php artisan migrate