mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-21 08:51:34 +02:00
651e06fdb9
Also adds other package config settings however they have not yet been called in ConfigServiceProvider
30 lines
739 B
PHP
30 lines
739 B
PHP
<?php namespace App\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class ConfigServiceProvider extends ServiceProvider {
|
|
|
|
/**
|
|
* Overwrite any vendor / package configuration.
|
|
*
|
|
* This service provider is intended to provide a convenient location for you
|
|
* to overwrite any "vendor" or package configuration that you may want to
|
|
* modify before the application handles the incoming request / command.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
// Surely there has to be a better way than this?
|
|
|
|
app('config')->set('confide', require $this->app->basePath() . '/config/packages/zizaco/confide/config.php');
|
|
|
|
/*
|
|
This doesn't work:
|
|
config([
|
|
'config/packages/zizaco/confide/config.php'
|
|
]);*/
|
|
}
|
|
|
|
}
|