Support the ongoing development of Laravel.io →
Installation Architecture Testing
Last updated 2 years ago.
0

The env option runs the given command under that environment, it doesn't change the environment permanently.

So for example, you might be on staging environment, for whatever reason you want to run a command under the local environment you could do php artisan migrate --env=local and it would attempt to migrate using the config of the local environment.

If you're looking to change environment permanently you need to do so under bootstrap/start.php

http://laravel.com/docs/4.2/configuration#environment-configuration

0

Sign in to participate in this thread!

Eventy

Your banner here too?

matyre73 matyre73 Joined 5 Feb 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.