本文介绍了Laravel Php工匠犯了迁移错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要使用 php artisan make:migration create_attendance_table.
但是在我的cmd中会出现这样的错误
But it gets an error like this in my cmd
我该如何解决该错误?
How can i fix this error?
推荐答案
似乎您首先创建了一个 create_attendance_table 并将其删除.遇到错误是因为找不到该已删除的迁移文件.摆脱错误
Seems like you have first created a create_attendance_table and deleted it. The error came across because it couldn't find that deleted migration file. To get rid of error
第一个命中命令
composer dump-autoload
然后
php artisan make:migration create_attendance_table
希望这会对您有所帮助.
Hope this will help you.
这篇关于Laravel Php工匠犯了迁移错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!