Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
caravena opened this issue Dec 18, 2018 · 1 comment

Comments

@caravena
Copy link

caravena commented Dec 18, 2018

$ 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

@kamleshwebtech
Copy link

kamleshwebtech commented Jan 15, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants