Artisan, creating tables in database

后端 未结 3 1608
不思量自难忘°
不思量自难忘° 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:48

    In order to give a value in the table, we need to give a command:

    php artisan make:migration create_users_table
    

    and after then this command line

    php artisan migrate
    

    ......

提交回复
热议问题