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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community