Open codeArtisanry opened 1 month ago
4.35
Can somebody help me out? When I remove my middleware i can see the data and api's but when i add middleware it got me with 401 unauthorized
i'm using sanctum:auth
sanctum:auth
Below are the ways which i already tried
'middleware' => ['auth:*'],
'middleware' => ['*', 'auth:sanctum', 'auth:promoter_app', 'client:promoter_scope', 'auth:store_manager_app', 'client:store_manager_scope', 'client:e_commerce_scope', 'auth:warehouse_manager_app', 'client:warehouse_manager_scope', 'auth:admin_app', 'client:admin_scope', 'auth:cashier_app', 'client:cashier_scope', 'auth:member_app', 'client:member_scope', 'auth:api'],
'middleware' => ['*'],
Thanks for your help and support
Also please do let me know if there's any way to bypass the middleware by writing up any rules in comments above method
Scribe version
4.35
Your question
Can somebody help me out? When I remove my middleware i can see the data and api's but when i add middleware it got me with 401 unauthorized
i'm using
sanctum:auth
Below are the ways which i already tried
'middleware' => ['auth:*'],
'middleware' => ['*', 'auth:sanctum', 'auth:promoter_app', 'client:promoter_scope', 'auth:store_manager_app', 'client:store_manager_scope', 'client:e_commerce_scope', 'auth:warehouse_manager_app', 'client:warehouse_manager_scope', 'auth:admin_app', 'client:admin_scope', 'auth:cashier_app', 'client:cashier_scope', 'auth:member_app', 'client:member_scope', 'auth:api'],
'middleware' => ['*'],
Thanks for your help and support
Docs