Skip to content
Discussion options

You must be logged in to vote

Does that mean that we can change the guard from web to something else?

Exactly, you can set a different guard (as long as it is defined in auth.php config file, under guards key). What's more, you can set multiple guards to check (via array).

And i dont think laravel documented anything about sanctum's guard config.

I believe you're right, documentation says nothing about it. Surely, you can contribute to it and document such functionality 😄

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by myckhel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants