1

I want to create a tbl_teacher_students table using migration..

My command is php artisan make:migration create_tbl_teacher_students_table.
I also tried adding --create=tbl_teacher_students but both gives me this error:

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

 Symfony\Component\ErrorHandler\Error\FatalError 

 Cannot declare class CreateFailedJobsTable, because the name is already in use

I can't find anything about CreateFailedJobsTable error relating to migration.
Additional, I also tried adding column to an existing table but it gave me the same error.

0

1 Answer 1

2

This is happening, because on your database/migrataions/ directory create_failed_jobs_table..... created twice. Delete one. Then run composer dump-autoload and try again. This will solve the problem

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.