Once you run php artisan infyom... to generate your API, it creates the migration without uppercase in the second word (in my case: CreatetemplatesTableinstead of CreateTemplatesTable). So when you need to rollback, laravel can't find the proper class to rollback due to mispelled name. The workaround is to rename the migration class, composer dump-autoload and then rollback.
Once you run
php artisan infyom...
to generate your API, it creates the migration without uppercase in the second word (in my case:CreatetemplatesTable
instead ofCreateTemplatesTable
). So when you need to rollback, laravel can't find the proper class to rollback due to mispelled name. The workaround is to rename the migration class,composer dump-autoload
and then rollback.