PHP code example of toneflix-code / laravel-dbconfig

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

    

toneflix-code / laravel-dbconfig example snippets


ToneflixCode\DbConfig\DbConfigServiceProvider::class

return [
    ToneflixCode\DbConfig\DbConfigServiceProvider::class,
];

use ToneflixCode\DbConfig\Helpers\Configure;

dd(Configure::config(key: 'app_name'));

dd(dbconfig(key: 'app_name'));

use ToneflixCode\DbConfig\Helpers\Configure;

dd(Configure::config());

dd(dbconfig());

use ToneflixCode\DbConfig\Helpers\Configure;

Configure::config(key: ['app_name' => 'Toneflix']);

dbconfig(key: ['app_name' => 'Toneflix']);

use ToneflixCode\DbConfig\Helpers\Configure;

Configure::config(key: ['app_name' => 'Toneflix'], loadSecret: true);

dbconfig(key: ['app_name' => 'Toneflix'], loadSecret: true);

use ToneflixCode\DbConfig\Helpers\Configure;

Configure::config(key: ['logo' => request()->file('logo')]);

dbconfig(key: ['logo' => request()->file('logo')]);
bash
php artisan vendor:publish --tag="dbconfig-migrations"
bash
php artisan vendor:publish --tag="dbconfig"
bash
php artisan dbconfig:create
bash
php artisan dbconfig:create [<key>]
bash
php artisan dbconfig:set
bash
php artisan dbconfig:set [<option> [<value>]]