it's default environment. So just change it.
Also you can define connection to use:
$ php artisan migrate --database=some_connection
Hey Jarek, thanks for the quick reply..
The connection I'm using it's already defined as the default one:
'default' => 'mysql',
I mean, I have two apps:
/vagrant/code/laravel/ , which is pointing to "Homestead" database, on /vagrant/code/laravel/app/config/database.php /vagrant/code/laf/, which is pointing to "laf" database on /vagrant/code/laf/app/config/database.php
I thought artisan migrate would get the connection from the database.php file located at the app path I'm running it from. Is that assumption wrong? Where am I supposed to change the default environment for migrate?
Thanks again.
I just found it on config/local/database.php
Thanks again, problem solved.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community