Badge on sub-navigation
Is it possible to create a badge with a relation count of the
ownerRecord()
on the new sub navigation menu?Solution:Jump to solution
```php
public static function getNavigationBadge(): ?string
{
return Number::format(
number: Livewire::current()->getRecord()->subscribers()->count(),...
2 Replies
Solution