laravel5-5-example icon indicating copy to clipboard operation
laravel5-5-example copied to clipboard

PHP Fatal error: Cannot declare class AddConfirmation, because the name is already in use ...

Open caravena opened this issue 6 years ago • 1 comments

$ 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 avatar Dec 18 '18 14:12 caravena

@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. :)

kamleshwebtech avatar Jan 15 '19 10:01 kamleshwebtech