0👍
I am answering my self because I found a solution
In Laravel Sanctum documentation, they added the passport class at the top so that’s why I, unfortunately, added the passport class at the top. like below.
use App\Models\Passport\PersonalAccessToken;
use Laravel\Sanctum\Sanctum;
When I remove this passport class my code works successfully. documentation link:https://laravel.com/docs/8.x/sanctum#issuing-mobile-api-tokens
Source:stackexchange.com