Configuring canAccessPanel
I am using filament 3 and the new multi panel feature. I have 2 panels, one for admin and another for user. In the User.php model, i have the following:
public function canAccessPanel(Panel $panel): bool
{
return $this->is_admin;
}
This works - admins can view both the admin panel and user panel. However, a normal user cannot access the user panel due to this. How do I fix this?
public function canAccessPanel(Panel $panel): bool
{
return $this->is_admin;
}
This works - admins can view both the admin panel and user panel. However, a normal user cannot access the user panel due to this. How do I fix this?