Last Updated: February 25, 2016
· wajatimur

Laravel Config Package Override in Workbench

This example show how to add config override of any package in others package or workbench. You have to put this code in your register method in you service provider.

// Get config loader
$loader = $this->app['config']->getLoader();

// Get environment name
$env = $this->app['config']->getEnvironment();

// Add package namespace with path set base on your requirement

// Load package override config file
$configs = $loader->load($env,'config','basset');

// Override value