gasa
gasa
Explore posts from servers
FFilament
Created by gasa on 10/29/2024 in #❓┊help
null returned for Filament::getTenant() on a second panel
Hi, I am trying to getTenant on my second app panel. I can see tenant when i call the function on the admin panel.
public function canAccessPanel(Panel $panel): bool
{

if ($panel->getId() === 'admin') {
info('getTenant admin' . Filament::getTenant());
return true;
}

if ($panel->getId() === 'app') {
info('getTenant app' . Filament::getTenant());
return true;
}


return $this->hasRole('admin');
}
public function canAccessPanel(Panel $panel): bool
{

if ($panel->getId() === 'admin') {
info('getTenant admin' . Filament::getTenant());
return true;
}

if ($panel->getId() === 'app') {
info('getTenant app' . Filament::getTenant());
return true;
}


return $this->hasRole('admin');
}
when i go to admin panel i can see the return value, but on app panel i can only see null
3 replies
TTCTheo's Typesafe Cult
Created by gasa on 5/21/2023 in #questions
shadcn eslint hell
I am using t3-stack for a while and previously used vanilla tailwind and chakra-ui. I've heard a lot of good things about shadcn-ui and how it is just copy-paste and its a library. But I am trying to start using it after creating a project with t3-stack and I keep seeing eslint errors for the imported components.
8 replies