Issue with Token Authentication using Sanctum and MongoDB
I was playing around with Laravel, Nuxt 3 and Sancutm, Basically following this link. The part where a custom middleware is used instead of auth:sanctum to ensure the user is logged in using valid token surprises me because with MySQL backend auth:sanctum middleware works just fine no need for a custom middleware to ensure the user is logged in for each request. Is there another model that needs modification in order to work properly?