PHP code example of benrowe / laravel-config

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

    

benrowe / laravel-config example snippets




use Benrowe\Laravel\Config\Config;

$config = new Config([
    'foo.bar[0]' => 'Hello',
    'foo.bar[1]' => 'World',
    'foo.key'    => 'Value'
]);

$foo = $config->get('foo'); // => ['bar' => ['Hello', 'World'], 'key' => 'Value']
$bar = $config->get('foo.bar'); // => ['Hello', 'World']


Benrowe\Laravel\Config\ServiceProvider::class

'RuntimeConfig' => Benrowe\Laravel\Config\Facdes\Config::class,

php artisan vendor:publish --provider="Benrowe\Laravel\Config\ServiceProvider" --tag="config"

php artisan vendor:publish --provider="Benrowe\Laravel\Config\ServiceProvider" --tag="migrations"