// How to guard with only admin
Route::middleware(['auth:sanctum'])
like:
Route::middleware(['auth:sanctum:admin']) // Equivalent to config(['sanctum.gurd' => ['admin']])
// How to guard with only customer
Route::middleware(['auth:sanctum'])
like:
Route::middleware(['auth:sanctum:customer']) // Equivalent to config(['sanctum.gurd' => ['customer']])
Guards
Routes