Restrict user access to different panels based on roles

I have 2 pannels One is Pharmacy and other is clinic. I have one login page , based on roles I am redirecting to the panels.
Solution
OK, yeah, so I was missing

->authMiddleware([
    Authenticate::class,
])
Was this page helpful?