3

I have two databases (db1 and db2). When I create migrations, I can choose a connection with ::connection() method.

When I run the migrations command

php artisan migrate

, the tables are created and saved correctly in corresponding database, but all the migration info is saved to 'migrations' table in the first database.

What I would like to do is to save the migrations data in the corresponding database.

naneri
  • 3,771
  • 2
  • 29
  • 53

0 Answers0