© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
F
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
Join
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Problem with Custom Form-Field Table in Filament Resource Form
F
Filament / ❓┊help
16mo ago
Resource visible in sidebar even if `viewAny()` returns false
F
Filament / ❓┊help
17mo ago
Filament nested resource with pivot
F
Filament / ❓┊help
5mo ago
Filament-Shield v4 problem with new resources
F
Filament / ❓┊help
5mo ago