2017-04-03 10:41
浏览 310

Laravel php artisan make:auth没有创建迁移表

I am following Laravel documentation for creating Authentication system.

My Steps Are

  1. Installing fresh laravel using laravel new my-project
  2. Then enter into directory (cd my-project). Edit the database config file with database credentials.
  3. Then run php artisan make:auth. All migration php files are created.
  4. Run php artisan migrate. CLI responds with nothing to migrate

So I went back to check the database using phpmyadmin. I do not see any migration table.

System & Version info

  1. Vagrant box laravel/homestead
  2. Database mariaDb
  3. Laravel installer v1.3.5, by cli command laravel -v
  4. Laravel v5.4.16, from composer.lock

Can anyone point me to the right direction?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • dounuo7954
    dounuo7954 2017-04-03 12:49

    Configure your database in .env file

    DB_DATABASE=DbName   //Your DB Name 
    点赞 评论
  • doujiang1939
    doujiang1939 2018-01-15 10:35

    Also, you can try this:

    php artisan migrate:install which creates the migrations table only

    php artisan migrate runs your other migrations

    点赞 评论