© 2026 Hedgehog Software, LLC
public static function getNavigationBadge(): ?string { return Cache::get('navigation.vetting_photos.label', '…'); }
$current = Cache::get('navigation.vetting_photos.label', 0); if ($current > 0) { Cache::decrement('navigation.vetting_photos.label'); }
FilamentView::registerRenderHook( PanelsRenderHook::BODY_END, fn (): string => <<<'HTML' <script> document.addEventListener('alpine:init', () => { window.addEventListener('refresh-navigation', () => { const panel = window.filament?.app?.panels?.admin; if (panel?.refreshNavigation) { console.log('does not run'); panel.refreshNavigation(); } }); }); </script> HTML );
$wire.$dispatch('refresh-sidebar')