© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
10 replies
Hemanath

Filament Access

What I am trying to do: I want give filament access to the particular user role.
What I did: I used public function canAccessFilament(): bool inside the user model.
My issue/the error:
Cannot redeclare App\Models\User::canAccessFilament()
Code:
public function canAccessFilament(): bool
{
return $this->role != 'member';
}
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

Unable to access filament
FilamentFFilament / ❓┊help
3y ago
Use Filament login to access a non filament page
FilamentFFilament / ❓┊help
10mo ago
Filament accessibility for Screen Readers
FilamentFFilament / ❓┊help
12mo ago
How can Filament access app.js?
FilamentFFilament / ❓┊help
2y ago