Doubts with getEloquentQuery()
I have a question, the getNavigationBadge, counts all the unprocessed records, but without filtering by employee in case that he is not an administrator. How could I make it filter without having to add the admin condition to getNavigationBadge?
2 Replies
Shouldn’t your getNavigationBadge return getEloquentQuery() on your class, otherwise it’s ignoring your logic and just chaining off the parent.?
return static::getEloquentQuery(