Reputation: 3835
I created a migrate class for laravel using:
php artisan make:migration mymigrationclass
Then I deleted it manually. Then I created it again using the same name.
After that I tried to refresh my database by using:
php artisan migrate:refresh
But now I get the error:
Cannot declare class mymigrationclass, because the name is already in use
Probably because I deleted it manually before.
What should I do now?
Upvotes: 0
Views: 47
Reputation: 1095
Also, make sure you remove it from your migrations table in db.
Upvotes: 1