title: Using require-dev with composer and laravel
body: <p>I was using require-dev for my development tools dependencies. Like the laravel debugbar, the barryvdh ide-helper, etc...</p>
  
  <p>When i get to my production server and run "composer update --no-dev --no-scripts" everything seems to be OK.</p>
  
  <p>Then, you realize that you must remove your "dev providers" from the app.php array.</p>
  
  <p>So whats the point of using require-dev? there isnt a "providers-dev" array?</p>
  
  <p><strong>UPDATE:</strong>
  I was that i get it fixed but it's not working.
  I create the file app/config/local/app.php with this:</p>
  
  <pre><code>&lt;?php
  return array(
      'providers' =&gt; append_config(array(
          'Barryvdh\Debugbar\ServiceProvider',
          'Way\Generators\GeneratorsServiceProvider',
          'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider',
          'Barryvdh\Debugbar\ServiceProvider',
      ))
  );
  </code></pre>
  
  <p>and on the top of app/start/global.php</p>
  
  <pre><code>$env = $app-&gt;detectEnvironment(function(){
      $hosts = array(
          'localhost' =&gt; 'local',
          '127.0.0.1' =&gt; 'local',
      );
  
      if(isset($hosts[$_SERVER['SERVER_NAME']])){
          return $hosts[$_SERVER['SERVER_NAME']];
      }
  </code></pre>
  
  <p>});</p>
  
  <p>I tried echoing the $env variable and it returns 'local' so it's working. When i open my site i can't see the debugbar but everything else is working.</p>
  
  <p>Any tip?</p>