lundi 8 mai 2017

Call Migrations in Laravel 5.4 Controller

I am creating a SAAS application with multi tenant databases. So whenever a person registers on the site. i am creating a database on run time and then after a connection on the fly. i want to run the migrations to create tables in the new database.

Everything is working fine but the migrations are not happening. here is my migration calling code.

  Artisan::call('migrate', array('--path' => 'database/migrations', '--force' => true));

i am already creating the migrations tables before calling this command.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire