Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 4 migrate rollback problems

Tags:

php

laravel

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?

like image 990
Dexty Avatar asked Jun 18 '13 16:06

Dexty


1 Answers

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.

like image 193
DerLola Avatar answered Oct 11 '22 21:10

DerLola