Php Can';t刷新Laravel中的迁移
我手动删除迁移文件。现在,我尝试使用以下工具运行迁移:Php Can';t刷新Laravel中的迁移,php,laravel,migration,laravel-artisan,Php,Laravel,Migration,Laravel Artisan,我手动删除迁移文件。现在,我尝试使用以下工具运行迁移: php artisan migrate:refresh 我得到一个错误: [ErrorException] include(C:\xampp\htdocs\NightClubs/database/migrations/2014_10_12_000000_cr eate_users_table.php):
php artisan migrate:refresh
我得到一个错误:
[ErrorException]
include(C:\xampp\htdocs\NightClubs/database/migrations/2014_10_12_000000_cr
eate_users_table.php): failed to open stream: No such file or directory
这是我删除的迁移文件的名称。怎么办?迁移模式记录通过
artisan migrate
命令运行的文件名
如果您在删除迁移类文件后遇到错误,只需从
migrations
表中删除该记录即可。如果您有自由,请完全拆除数据库并从头开始。您是否也删除了数据库中的记录?是的,这会有所帮助。我们也可以使用composer dump自动加载。