PHP code example of hxm / database-system-config

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

    

hxm / database-system-config example snippets


 

return [
    'merge_config' => true, // change to false to disable it
    //If you disable it, you will not be able to access the value directly through the system config($key)
];

 \HXM\DatabaseSystemConfig\Facades\DatabaseSystemConfig::set('group.key.index', $value);

 \HXM\DatabaseSystemConfig\Facades\DatabaseSystemConfig::get('group.key.index', $defaultValue);

 \HXM\DatabaseSystemConfig\Facades\DatabaseSystemConfig::all();

 \HXM\DatabaseSystemConfig\Facades\DatabaseSystemConfig::groups();

 config()->get($key, $defaultValue);
bash
php artisan migrate
bash
php artisan vendor:publish --provider="HXM\DatabaseSystemConfig\Providers\DatabaseSystemConfigServiceProvider" --tag="database_system_config"