In Laravel 4 the default configuration environment is \'production\'. This means that if you run an artisan command without the --env
option, it assumes the product
In bootstrap/start.php you can set the environment:
$env = $app->detectEnvironment(function()
{
return 'development';
});
But you can do many things like:
$env = $app->detectEnvironment(array(
'local' => array('your-machine-name'),
));
And
$env = $app->detectEnvironment(function()
{
return $_SERVER['MY_LARAVEL_ENV'];
});