how make multi panel with multi guard ?

i want make multi panel with multi guard
8 Replies
Patrick Boivin
Patrick Boivin16mo ago
What have you been trying? Did you run into any issues?
Mohab Mamdouh
Mohab MamdouhOP16mo ago
I want make multi panels with login and different guards
Patrick Boivin
Patrick Boivin16mo ago
Please share your code and details on the issues you're having
Mohab Mamdouh
Mohab MamdouhOP16mo ago
i have 3 dashboard Admins, Providers and users i want seperate each dashboard to have a login screen diff guards like admnis have AdminUsers Model and ProviderUsers ...etc
Patrick Boivin
Patrick Boivin16mo ago
I understand what you want, I'm trying to see what you have tried, so I can help you with it
Watoka
Watoka16mo ago
class AppPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->id('app')
->path('app')
->authGuard('monitor')
class AppPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->id('app')
->path('app')
->authGuard('monitor')
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->default()
->id('admin')
->path('admin')
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->default()
->id('admin')
->path('admin')
I've tried something like this and it works perfectly
Mohab Mamdouh
Mohab MamdouhOP16mo ago
Thanks it’s worked fine
Dennis Koch
Dennis Koch16mo ago
For the future: Please give your questions a bit more info. One line is usually not enough.
Want results from more Discord servers?
Add your server