PHP Fatal error: Cannot declare class CreateUsersTable, because the name is already in use in C:Usersjoshularaveljobs_appdatabasemigrationscreate_users_table.php on line 7
This is the error code, I have checked and checked and cant seem to find any duplicate 🙁
PS C:Usersjoshularaveljobs_app> php artisan migrate
INFO Running migrations.
PHP Fatal error: Cannot declare class CreateUsersTable, because the name is already in use in C:Usersjoshularaveljobs_appdatabasemigrationscreate_users_table.php on line 7
SymfonyComponentErrorHandlerErrorFatalError
Cannot declare class CreateUsersTable, because the name is already in use
at databasemigrationscreate_users_table.php:7
3▕ use IlluminateDatabaseMigrationsMigration;
4▕ use IlluminateDatabaseSchemaBlueprint;
5▕ use IlluminateSupportFacadesSchema;
6▕
➜ 7▕ class CreateUsersTable extends Migration
8▕ {
9▕ /**
10▕ * Run the migrations.
11▕ *
WhoopsExceptionErrorException
Cannot declare class CreateUsersTable, because the name is already in use
at databasemigrationscreate_users_table.php:7
3▕ use IlluminateDatabaseMigrationsMigration;
4▕ use IlluminateDatabaseSchemaBlueprint;
5▕ use IlluminateSupportFacadesSchema;
6▕
➜ 7▕ class CreateUsersTable extends Migration
8▕ {
9▕ /**
10▕ * Run the migrations.
11▕ *
1 vendorfilpwhoopssrcWhoopsRun.php:510
WhoopsRun::handleError("Cannot declare class CreateUsersTable, because the name is already in use", "C:Usersjoshularaveljobs_appdatabasemigrationscreate_users_table.php")
2 [internal]:0
WhoopsRun::handleShutdown() ```
I have scanned and also used find all references but it only brings up one line. I have also tried
findstr /s "AddRoleToUsersTable"
again only one line.
New contributor
Joshua is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.