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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s