Olá, pessoal. Ao executar o comando php artisan migrate:fresh tive o seguinte erro:
PHP Fatal error: Cannot declare class CreatePersonalAccessTokensTable, because the name is already in use in D:\Projetos\controle-series\vendor\laravel\sanctum\database\migrations\2019_12_14_000001_create_personal_access_tokens_table(1).php on line 7
Symfony\Component\ErrorHandler\Error\FatalError
Cannot declare class CreatePersonalAccessTokensTable, because the name is already in use
at D:\Projetos\controle-series\vendor\laravel\sanctum\database\migrations\2019_12_14_000001_create_personal_access_tokens_table(1).php:7
3▕ use Illuminate\Database\Migrations\Migration;
4▕ use Illuminate\Database\Schema\Blueprint;
5▕ use Illuminate\Support\Facades\Schema;
6▕
➜ 7▕ class CreatePersonalAccessTokensTable extends Migration
8▕ {
9▕ /**
10▕ * Run the migrations.
11▕ *
Whoops\Exception\ErrorException
Cannot declare class CreatePersonalAccessTokensTable, because the name is already in use
at D:\Projetos\controle-series\vendor\laravel\sanctum\database\migrations\2019_12_14_000001_create_personal_access_tokens_table(1).php:7
3▕ use Illuminate\Database\Migrations\Migration;
4▕ use Illuminate\Database\Schema\Blueprint;
5▕ use Illuminate\Support\Facades\Schema;
6▕
➜ 7▕ class CreatePersonalAccessTokensTable extends Migration
8▕ {
9▕ /**
10▕ * Run the migrations.
11▕ *
1 D:\Projetos\controle-series\vendor\filp\whoops\src\Whoops\Run.php:486
Whoops\Run::handleError("Cannot declare class CreatePersonalAccessTokensTable, because the name is already in use", "D:\Projetos\controle-series\vendor\laravel\sanctum\database\migrations\2019_12_14_000001_create_personal_access_tokens_table(1).php")
2 [internal]:0
Whoops\Run::handleShutdown()
Se não entendi errado, ele diz que não é possível criar a tabela CreatePersonalAccessTokensTable porque a mesma já está em uso. Mas ao usar o comando migrate:fresh, as tabelas não deveriam ser apagadas? O sistema funcionava normalmente antes de realizar o comando. Tentei usar também os comandos: php artisan migrate:rollback e php artisan migrate:reset mas nenhum resolveu. O que posso fazer para corrigir o problema?