© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•12mo ago•
10 replies
Nikos Koukos

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());
    }
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?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Problem with Custom Form-Field Table in Filament Resource Form
FilamentFFilament / ❓┊help
16mo ago
Resource visible in sidebar even if `viewAny()` returns false
FilamentFFilament / ❓┊help
17mo ago
Filament nested resource with pivot
FilamentFFilament / ❓┊help
5mo ago
Filament-Shield v4 problem with new resources
FilamentFFilament / ❓┊help
5mo ago