© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•12mo ago•
4 replies
Leonardo Ferreira

403 Forbidden in Production or Staging with FilamentPHP

APP_ENV is set to local, I can access the admin panel without any issues. However, when I switch to APP_ENV=production or staging, I get a 403 Forbidden error when trying to access the admin panel.
I have already defined canAccessPanel() in the User model to always return true:
public function canAccessPanel(Panel $panel): bool
{
return true;
}
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

403 Forbidden in production
FilamentFFilament / ❓┊help
2y ago
403 Forbidden in production
FilamentFFilament / ❓┊help
2y ago
403 forbidden when production
FilamentFFilament / ❓┊help
2y ago
403 | Forbidden
FilamentFFilament / ❓┊help
2y ago