How to create a mysql db with Laravel

前端 未结 6 828
盖世英雄少女心
盖世英雄少女心 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:32

    You should create the DB, and set the connection parameters to it. Then, Laravel will access the DB and will run the migrations (make the tables) and the seeders.

    You can found the parameters for php artisan migrate here: https://laravel.com/docs/5.2/migrations#running-migrations

提交回复
热议问题