Skip to content
Advertisement

Laravel 5 php artisan migrate –database parameter not working

i want to migrate database using console command

when i try php artisan migrate is working, but when i try php artisan migrate --database="test" is not working it said

JavaScript

what’s wrong ? this is php artisan migrate --help

JavaScript

UPDATE

after i realise it’s not database name, but database connection.. but i need to call database name, because i call this from another project to create new database and migrate it. so i need to be dynamic.. how to achieve that ?

Advertisement

Answer

I found some package that working perfectly what i need..

https://packagist.org/packages/a2way/laravel-tenant-migrate

i can run migrate:tenant (connection-name) (database-name) for create database for every tenant..

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement