How to create a mysql db with Laravel

前端 未结 6 811
盖世英雄少女心
盖世英雄少女心 2021-02-13 14:50

I\'m using Laravel 5.2. I\'ve setup my first migrations and I want to run them. From the video tutorial it doesn\'t explain how to create a mysql db. I know I can do this man

6条回答
  •  北恋
    北恋 (楼主)
    2021-02-13 15:08

    you have to make your modal first and make its migration table also in order to make a database. you should use: php artisan make:model -m command to make model and migration table. after that open your migration table in any texteditor to add the columns in your database table and then, use this command to migrate:

    php artisan migrate

提交回复
热议问题