Support the ongoing development of Laravel.io →
posted 2 years ago
Database
Last updated 8 months ago.
0
moderator

You can run any artisan command with -h to see the options. Example: php artisan migrate -h

There you see that you can add --database[=DATABASE] to select the connection to use.

In your situation it will work with:
php artisan migrate --database=test
php artisan migrate:fresh --database=test
php artisan migrate:rollback --database=test

Last updated 2 years ago.
0

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

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.

© 2023 Laravel.io - All rights reserved.