Symfony2 like database creation command in laravel console?

后端 未结 3 721
忘了有多久
忘了有多久 2021-01-16 20:32

I have used symfony2 console to create database. If I want to create a database named \"symfony\" I usually mentioned that name in parameters.yml file and run the below comm

3条回答
  •  旧时难觅i
    2021-01-16 21:24

    As far as I know, you can use php artisan migrate to make migrations including creating tables from Laravel Console. However, you need to create and modify migration files first, where you can create or drop tables.

    So if you want to create a table directly from Laravel Console using something like php artisan create database table ***, it is not possible.

提交回复
热议问题