Problem with viewAny in a FIlament Resource

Hello, i have a problem when i call the viewAny() function in a resource

public static function canViewAny(): bool
    {
        dd(auth()->user());
    }


I get null when i login to the Filament Pane as a user is there a solution to this or another way to achieve that?
Was this page helpful?