Answer the question
In order to leave comments, you need to log in
Why can't rollback laravel 5 migration?
Created a migration with the command:
php artisan make:migration --create=messages create_messages_table
php artisan migrate:reset
[Symfony\Component\Debug\Exception\FatalThrowableError]
Fatal error: Class 'CreateMessagesTable' not found
Answer the question
In order to leave comments, you need to log in
1) php artisan migrate:reset - does not roll back the migration, but rolls back + rolls again. To ONLY rollback the migration you need to use migrate:rollback
2) This problem is due to composer autoloading, it doesn't pick up the classes correctly. You just need to do composer dumpautoload -o and everything will work.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question