Join 6,000+ Laravel Developers on March 6, 2019 for Laracon Online. Get your tickets today!
Laravel Tutorials / updated: August 06, 2014

Require-Dev in Laravel

J.T. Grimes has a new post about keeping development service providers outside of the config/app.php file.

There are some packages which we only need during development, but which become tightly coupled with Laravel. Once you’ve added the packages to the array of ServiceProviders in app/config/app.php, you have to either have a different config for development or include those packages in your deployment.

I’m sure there are other ways to do this but I like the logic behind it. What ways are you getting around this? Or do you even care?

Update: Matt Stauffer reminds me via Twitter about the append_config helper

'providers' => append_config(array(

Visit Resource →

Laravel News Partners


Join the weekly newsletter and never miss out on new tips, tutorials, and more.