1

My new project is a multi database project where the codebase is the same and every client has his/her own database.

My questions:

  • If I have a new client and I create a database for him/her, how to run all of the migrations for only that database?
  • If I make some changes (for example a new table) how to run it on all of the databases?
Feralheart
  • 1,881
  • 5
  • 28
  • 59
  • maybe this can help: [Laravel: Run migrations on another database](https://stackoverflow.com/questions/25952348/laravel-run-migrations-on-another-database) – ljubadr Oct 24 '17 at 05:55
  • Please review this [link](https://stackoverflow.com/questions/26654846/use-one-laravel-migrations-table-per-database) – AddWeb Solution Pvt Ltd Oct 24 '17 at 06:43

1 Answers1

0

Try:

php artisan migrate --database=**name_of_database**
Gothiquo
  • 841
  • 1
  • 8
  • 31