laravel/laravel — pull request #696 by joecwallace (2012-05-22 16:11:14+00:00)
Title: CLI env management

I love the env management in 3.2 so much that I decided to extend it to the CLI.

With this change, you can do something like

$environments = array(
'local' => array('http://localhost*', '*.dev', 'mydevmachine'),
);

So that ```php artisan migrate``` will run against my 'local' env by default on my dev machine.

Of course, the ```--env``` option overrides this so that ```php artisan migrate --env=production``` will work as expected.