I have a Laravel 6 application and installed Laravel Sanctum. Have followed these steps [1]. If I run sanctum/token
via Postman I get a token as a response. When I open a protected route with this token set as bearer I always get unauthenticated.
When I look in the database the table personal_access_tokens
is empty. While I create the token via:
$token = $user->createToken('auth_token')->plainTextToken;
Anyone have an idea why it doesn't store the token in the database?
[1] https://laravel.com/docs/9.x/sanctum#mobile-application-authentication