In the first part of the Laravel Sanctum tutorial, we have implemented the SPA Authentication. This Laravel Sanctum package also allows us to issue API tokens or personal access tokens to the user that can be used to authenticate API requests.

laravel tutorial