Artisan, creating tables in database

后端 未结 3 1618
不思量自难忘°
不思量自难忘° 2021-02-02 07:17

I am trying to create mysql tables in Laravel 5. I created a file in /project/database/migrations called users.php:

[...]
public functi         


        
3条回答
  •  感情败类
    2021-02-02 07:30

    in laravel 5 first we need to create migration and then run the migration

    Step 1.

    php artisan make:migration create_users_table --create=users
    

    Step 2.

    php artisan migrate
    

提交回复
热议问题