laravel5-5-example
laravel5-5-example copied to clipboard
PHP Fatal error: Cannot declare class AddConfirmation, because the name is already in use ...
$ php artisan migrate --seed PHP Fatal error: Cannot declare class AddConfirmation, because the name is already in use in /.../laravel5-5-example/database/migrations/2018_12_18_140553_add_confirmation.php on line 37
In 2018_12_18_140553_add_confirmation.php line 37:
Cannot declare class AddConfirmation, because the name is already in use
@caravena Just remove '2018_08_31_172300_add_confirmation.php' file from migration folder then run below command again, it will definitely work.
$ php artisan migrate --seed
I found the same error and fixed it by removing this duplicate file. :)