read in a local.conf.php in the root for overrides

This commit is contained in:
Nabeel Shahzad
2017-07-05 23:05:17 -05:00
parent 10baaab646
commit e47b4628a0
3 changed files with 23 additions and 5 deletions

View File

@@ -4,7 +4,6 @@ namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use App\Services\AircraftService;
class AppServiceProvider extends ServiceProvider
{
@@ -15,7 +14,15 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot()
{
//
# if there's a local.conf.php in the root, then merge that in
if(file_exists(base_path('local.conf.php'))) {
$local_conf = include(base_path('local.conf.php'));
$config = $this->app['config']->get('phpvms', []);
$this->app['config']->set(
'phpvms',
array_merge($config, $local_conf)
);
}
}
/**