问题遇到的现象和发生背景
问题相关代码,请勿粘贴截图
运行结果及报错内容
我的解答思路和尝试过的方法
我想要达到的结果
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