Laravel 4迁移回滚问题 [英] Laravel 4 migrate rollback problems
本文介绍了Laravel 4迁移回滚问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以轻松地运行artisan migration等,但是当我尝试使用Migration:rollback将其回滚时,我一直收到此错误,
I can easily run the artisan migrate etc, but when i try to roll it back, with migration:rollback i keep getting this error,
c:\xampp\htdocs\laravel>php artisan migrate:rollback
{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Class 'CreateCodesnippetsTable' not found","file":"C:\\xampp\\htdocs\\laravel\\vendor\\laravel\\framework\\src\\Illum
inate\\Database\\Migrations\\Migrator.php","line":301}}
这是一个错误吗?或者我应该如何调试呢?
Is this a bug? or how should i debug this?
推荐答案
也许您已经解决了这个问题.但是我注意到由于某种原因,回滚通常需要您首先运行composer dumpautoload
.即使您的迁移有效.
Maybe you've already solved this issue. But I'm noticing that for some reason a rollback often requires you to run composer dumpautoload
first. Even if your migration works.
这篇关于Laravel 4迁移回滚问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文