D:\myphp_www\PHPTutorial\WWW\web>php artisan migrate:refresh --seed
PHP Fatal error: Cannot declare class CreateUserAddressesTable, because the name is already in use in D:\myphp_www\PHPTutorial\WWW\web\database\migrations\2021_11_23_015703_create_user_addresses_table.php on line 37
Symfony\Component\Debug\Exception\FatalErrorException : Cannot declare class CreateUserAddressesTable, because the name is already in use
at D:\myphp_www\PHPTutorial\WWW\web\database\migrations\2021_11_23_015703_create_user_addresses_table.php:37
33| public function down()
34| {
35| Schema::dropIfExists('user_addresses');
36| }
37| }
38|
Whoops\Exception\ErrorException : Cannot declare class CreateUserAddressesTable, because the name is already in use
at D:\myphp_www\PHPTutorial\WWW\web\database\migrations\2021_11_23_015703_create_user_addresses_table.php:37
33| public function down()
34| {
35| Schema::dropIfExists('user_addresses');
36| }
37| }
38|
Exception trace:
1 Whoops\Run::handleError("Cannot declare class CreateUserAddressesTable, because the name is already in use", "D:\myphp_www\PHPTutorial\WWW\web\database\migrations\2021_11_23_015703_create_user_addresses_table.php")
D:\myphp_www\PHPTutorial\WWW\web\vendor\filp\whoops\src\Whoops\Run.php:454
2 Whoops\Run::handleShutdown()
[internal]:0
表名重复啦,看一下其他文件,是不是也创建了user_addresses_table