i want to access laravel sanctum auth which is working fine in project routes I'm making a custom package of api's which needs to use same sanctum authentication with in the custom package routes
CodePudding user response:
use auth sanctum middleware for your routes, See below example.