prgrm
prgrm

Reputation: 3835

Laravel - I deleted a migrate class manually and created it again. Now Migrate won't work

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

Answers (2)

AshMenhennett
AshMenhennett

Reputation: 1095

Also, make sure you remove it from your migrations table in db.

Upvotes: 1

Ketan Akbari
Ketan Akbari

Reputation: 11287

Use command

composer dump-autoload

Upvotes: 0

Related Questions