Home > Mobile >  How to access Sanctum package in custom laravel package
How to access Sanctum package in custom laravel package

Time:02-24

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.

https://laravel.com/docs/9.x/sanctum#protecting-routes

  • Related