PHP code example of orchestra / config
1. Go to this page and download the library: Download orchestra/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/ */
orchestra / config example snippets
$app->singleton(
Illuminate\Foundation\Bootstrap\LoadConfiguration::class,
Orchestra\Config\Bootstrap\LoadConfiguration::class
);
namespace App\Providers;
use Orchestra\Config\Console\ConfigCacheCommand;
use Illuminate\Foundation\Providers\ArtisanServiceProvider as ServiceProvider;
class ArtisanServiceProvider extends ServiceProvider
{
/**
* Register the command.
*
* @return void
*/
protected function registerConfigCacheCommand()
{
$this->app->singleton('command.config.cache', function ($app) {
return new ConfigCacheCommand($app['files']);
});
}
}