doujinai2183 2017-04-03 10:41
浏览 320
已采纳

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 2017-04-03 12:49
    关注

    Configure your database in .env file

    DB_HOST=127.0.0.1
    DB_DATABASE=DbName   //Your DB Name 
    DB_USERNAME=root
    DB_PASSWORD=password123
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波
  • ¥15 针对曲面部件的制孔路径规划,大家有什么思路吗
  • ¥15 钢筋实图交点识别,机器视觉代码
  • ¥15 如何在Linux系统中,但是在window系统上idea里面可以正常运行?(相关搜索:jar包)
  • ¥50 400g qsfp 光模块iphy方案
  • ¥15 两块ADC0804用proteus仿真时,出现异常