© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Problem with viewAny in a FIlament Resource - Filament
F
Filament
•
14mo 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 apps & admin panels fast with Livewire
20,181
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
2y ago
Resource visible in sidebar even if `viewAny()` returns false
F
Filament / ❓┊help
2y ago
Filament nested resource with pivot
F
Filament / ❓┊help
7mo ago
Filament-Shield v4 problem with new resources
F
Filament / ❓┊help
6mo ago