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 Heugten15mo 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. PhearumOP15mo ago
right, thank you very much

Did you find this page helpful?