phplaraveldatabasedatabase-migrationlaravel-migrations

Laravel migrations messed up with cannot redeclare class


I meesed up my Laravel migrations and I get PHP Fatal error

Cannot redeclare Class

php artisan migrate --path="workbench/fefe/feeds2go/src/migrations"

I have been deleting the migration file and dropping manually the table and recreated with php artisan migrate:make but still the same.

How can I fix migratons?


Solution

  • You need to check all of your migration class files and check for duplicate class names.