Single Statamic user, multiple Laravel users how to #14103
Unanswered
eric-hansen
asked this question in
Q&A
Replies: 1 comment
-
|
You should configure two auth guards:
You can read more about it on the docs: https://statamic.dev/knowledge-base/tips/using-an-independent-authentication-guard |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I know this was possible in earlier versions, from what I've Googled, though it's not clear to me whether it was done via file-based auth for Statamic. Laravel's auth mechanism, as a whole, is sort of a black box for me at the moment, though I do get the general concepts, such as guards.
What I'm trying to accomplish, and haven't had any luck with in my searches, but maybe I'm not using the right terms, is having multiple users in a table, but only one of them (me) can log in to Statamic.
I'd prefer not doing a file-based auth for Statamic, and I'm not 100% sure why Statamic assumes every user is a Statamic user when it's a layer on top of Laravel, not its own platform (e.g., WordPress). But with it just being me who will have access to Statamic, I am hoping there is (still) a way to accomplish this in v6. Since what I have found is for v3.
Beta Was this translation helpful? Give feedback.
All reactions