The migrations that should run on the tenant connection will be stored on a tenants
directory inside the migrations
directory.
The custom commands are:
php artisan app:migrate {tenant-id}
php artisan app:rollback {tenant-id}
I forwarded just some of the parameters to the rollback command.
There might be some improvements and edges to improve. I started the project where I use this code in 2016, but it is just an example on my approach.