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 →

Filed in: Laravel Tutorials


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

Laravel News Partners

Laravel Jobs

Software Engineer Lead (PHP)
CivicPlus, LLC
Full-time Senior Web Developer
Detroit, MI
Wayne State University
Senior Software Engineer
Sydney, Australia
Full Stack Engineer
Remote or Medford, Oregon
Empire Medical
Laravel Developer (fulltime - Dutch only)
Qbixx | Webservices
Full Stack or Back-End Developer
Alexandria, VA; Tallahassee, FL; Orlando, FL
Marketing for Change
Senior Quality Assurance Engineer
Bisnow Media