F
Filament9mo ago
morty

Is it possible to get the current record when using sub-navigation for the badge?

I'm trying to count the related items for the parent record so I can show a navigation badge when using sub-navigation. Is it possible to get the current record somehow considering this is a static method?
1 Reply
morty
mortyOP9mo ago
For example, if I did:
return AccountContact::count();
return AccountContact::count();
This will give me the count of all contacts. I want just the contacts count for this specific account.
Want results from more Discord servers?
Add your server