Add auth()->user() to shouldRegisterNavigation()

How to use auth()->user() function or access authenticated user through shouldRegisterNavigation() function ? :
    public static function shouldRegisterNavigation(array $parameters = []): bool
    {
        return false;
    }
Was this page helpful?