Configure more than one auth driver #1234
-
Is there is a way to use more than one auth driver I have two guards company and employee and want to store activities for both. I found this #834 but not working the arguments are messing and when I check the Parent class doesn't work. |
Beta Was this translation helpful? Give feedback.
Answered by
mahmoudabdelhalim
Oct 26, 2023
Replies: 1 comment
-
I solved it by creating a middleware and registering it on the kernel.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mahmoudabdelhalim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I solved it by creating a middleware and registering it on the kernel.
the middleware to get all guards and check to which one auth and set it as a default driver.