how to poll 5s badge Navigation
public static function getNavigationBadge(): ?string
{
return $countUnique = BrgMasuk::where('status', 0)->distinct('uuid')->count('uuid'); } I want to poll realtime 5 s ? how make poll in Badge
return $countUnique = BrgMasuk::where('status', 0)->distinct('uuid')->count('uuid'); } I want to poll realtime 5 s ? how make poll in Badge
4 Replies
Looks like this is not currently possible (https://github.com/filamentphp/filament/discussions/7221)
GitHub
refresh navigation badge · filamentphp filament · Discussion #7221
Table polling works fine, but how can I update the corresponding navigation badge so that they are in sync?
If you need real-time updates, you could use database notifications
Thank, s