ronssij
Shared panel session
Hi guys sorry for the late reply on this thread.
In my case both are admin users but they vary on roles.
What I did was the
AdminPanelProvider
will be the default provider and login()
is enable on the panel. But on the ClinicPanelProvider
the login()
is not enabled.
I added middleware for the admin panel AdminAccessMiddleware::class
and ClinicAccessMiddleware::class
for the clinic panel.
so whenever a a users with a clinic admin
roles logs in. the panel is smart enough to redirect them on the clinic panel which also handles the tenancy.
Panel should share the same session if you use the same auth guard
which in my case is.
6 replies