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条)

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog