Using require-dev with composer and laravel -


i using require-dev development tools dependencies. laravel debugbar, barryvdh ide-helper, etc...

when production server , run "composer update --no-dev --no-scripts" seems ok.

then, realize must remove "dev providers" app.php array.

so whats point of using require-dev? there isnt "providers-dev" array?

update: fixed it's not working. create file app/config/local/app.php this:

<?php return array(     'providers' => append_config(array(         'barryvdh\debugbar\serviceprovider',         'way\generators\generatorsserviceprovider',         'barryvdh\laravelidehelper\idehelperserviceprovider',         'barryvdh\debugbar\serviceprovider',     )) ); 

and on top of app/start/global.php

$env = $app->detectenvironment(function(){     $hosts = array(         'localhost' => 'local',         '127.0.0.1' => 'local',     );      if(isset($hosts[$_server['server_name']])){         return $hosts[$_server['server_name']];     } 

});

i tried echoing $env variable , returns 'local' it's working. when open site can't see debugbar else working.

any tip?

just add dev providers app/config/local/app.php , use append_config:

'providers' => append_config(array(     'barryvdh\debugbar\serviceprovider', )) 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -