Possible for get Navigation Badge filter by tenant id

Hi team, Is it possible for get Navigation Badge filter by tenant id?
2 Replies
Tim van Heugten
Tim van Heugten12mo ago
Add the following to your resource:
public static function getNavigationBadge(): ?string
{
return static::getModel()::whereBelongsTo(Filament::getTenant())->count();
}
public static function getNavigationBadge(): ?string
{
return static::getModel()::whereBelongsTo(Filament::getTenant())->count();
}
Mr. Phearum
Mr. PhearumOP12mo ago
right, thank you very much
Want results from more Discord servers?
Add your server