FilamentF
Filament3y ago
3 replies
Jon

If I want to create panels for Users or Groups to edit their settings, is that a multitenant setup

part of my site needs front end management that allows users and or groups to manage settings specific to their profile. I figured a user and group panel might be a good way to do this, but should i be looking at multi tenant setups, or is there a better way to handle this?
Also I created a vendor panel as well then set up the access as "
 public function canAccessPanel(Panel $panel): bool
    {
        if ($panel->getId() === 'admin') {
            return auth()->check()
                   && auth()->user()->hasRole([
                    'admin', 'super-admin',
                ]);
        }
        if ($panel->getId() === 'vendor') {
            return true;
        }

        return true;
    }

but every panel but vendor allows me to access it. Vendor panel is blocking access. No idea why. if the path is simply /vendor is their a route conflict maybe?
Was this page helpful?