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?
另外,请确保将其从db中的迁移表中删除。
使用命令
composer dump-autoload
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.