Laravel Sanctum gives a simple mechanism of authentication for SPAs (Single Page Applications). There are basically two ways Sanctum can be used.  1. API Tokens: Sanctum can generate token for an authenticated user and that token can be used everytime for subsequent requests.  2. SPA Authentication: For this functionality, Sanctum avoids the use of tokens…

Read More