0
votes

Start working with Laravel Environment Configuration I want to override the base database.php. So I have another database.php file in app/config/local/ directory. Now I want to "append" environment service providers to my primary app configuration file. Following the Laravel docs I need to call the append_config helper method in the app/config/local/app.php file with the following.

'providers' => append_config(array(
    'LocalOnlyServiceProvider',
))

Did I call this append_config method in the right file? This method accepts an array as argument. What should be the right value of this array?

1

1 Answers

1
votes

An quick example how I added a Service Provider in my /app/config/local/app.php file. If you want to add another service, just add another item in the array.

'providers' => append_config(
    array('Way\Generators\GeneratorsServiceProvider')
),