How to rename a migration file in Laravel

PROBLEM:

Sometimes we want to rename a migration file within our laravel project and all goes well until you want to execute a:

php artisan migrate:rollback

And the console starts to show you some errors finding the paths of the files that you changed the names.

SOLUTION:

Just go to your project and find the next directory:

vendor\composer\autoload_static.php

and find the path of the files that you change their names and modify the lines too; that’s it, so simple right.

Hope this works for you and leave a comment and share the post

Thank you and until next time.

Advertisements