Xethron / migrations-generator

Laravel Migrations Generator: Automatically generate your migrations from an existing database schema.
MIT License
3.32k stars 588 forks source link

Error doing php artisan migrate:rollback #112

Closed juanmiguel431 closed 7 years ago

juanmiguel431 commented 7 years ago

After I did "php artisan migrate:generate test" the process generate pretty well the migration script. however, i tried to test "php artisan migrate:rollback" for delete the table and the console show me the error [Symfony\Component\Debug\Exception\FatalThrowableError] Class 'CreateTestTable' not found

But in the file everything looks good. This seems like a bug.

error rollback

create test table

juanmiguel431 commented 7 years ago

Looking in the documentation i get this https://laravel.com/docs/5.1/migrations. To solve the problem about class not found we can run "composer dump autoload" which re-generates classes in "\vendor\composer\autoload_classmap.php"