doudui9516 2014-10-28 08:03
浏览 151
已采纳

Laravel迁移重置失败

I have made some migration files in Laravel. When I type php artisan migrate in my terminal, everything goes fine. If I want to rollback all the migrations, I type php artian migrate:refresh, and I get an error:

[ErrorException]                                                             
include(/Applications/XAMPP/xamppfiles/htdocs/api-dashboardv2/app/database/ 
migrations/2014_10_03_113254_create_groups_user_table.php): failed to open
stream: No such file or directory.

The name if the file was 2014_10_03_113254_create_groups_user_table.php but I changed it to 2014_10_03_113254_create_group_user_table.php(without the 's' by group).

After I changed the filename, I removed my database manually and created al the tables again, with the migration files.

I do not understand why I still get this error.

  • 写回答

1条回答 默认 最新

  • dongqiang2358 2014-10-28 08:12
    关注

    Did you try composer dump? Might need to reload the files since you changed the migration files.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Python语言实验
  • ¥15 SAP HANA SQL 增加合计行
  • ¥20 用C#语言解决一个英文打字练习器,有偿
  • ¥15 srs-sip外部服务 webrtc支持H265格式
  • ¥15 在使用abaqus软件中,继承到assembly里的surfaces怎么使用python批量调动
  • ¥15 大一C语言期末考试,求帮助🙏🙏
  • ¥15 ch340驱动未分配COM
  • ¥15 Converting circular structure to JSON
  • ¥30 Hyper-v虚拟机相关问题,求解答。
  • ¥15 TSM320F2808PZA芯片 Bootloader