Support the ongoing development of Laravel.io →
Configuration Database
Last updated 2 years ago.
0

it's default environment. So just change it.

Also you can define connection to use:

$ php artisan migrate --database=some_connection
0

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.

0

I just found it on config/local/database.php

Thanks again, problem solved.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

lfrancarj lfrancarj Joined 14 Jan 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.