© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
16 replies
Vodyanoï

403 Forbidden in production

Hey !
I'm trying to deploy to production, site is working well but filament admin panel shows 403 forbidden after login

I've implemented the filament contract (returns true for testing purpose)

use Filament\Models\Contracts\FilamentUser;
use Filament\Panel;
// other imports...
class User extends Authenticatable implements MustVerifyEmail, FilamentUser {
    // not using filament trait
    // other methods... 
    public function canAccessPanel(Panel $panel): bool
    {
        return true;
    }
}
use Filament\Models\Contracts\FilamentUser;
use Filament\Panel;
// other imports...
class User extends Authenticatable implements MustVerifyEmail, FilamentUser {
    // not using filament trait
    // other methods... 
    public function canAccessPanel(Panel $panel): bool
    {
        return true;
    }
}

(Without this implementation I get the 403 forbidden before being able to try login (as intended by Filament))

I can access the filament login page, but once I'm logged in my newly created filament user using:
php artisan make:filament-user
php artisan make:filament-user


I get 403 Forbidden and need to clear browser cache to be able to attempt new login
If email/password is wrong I get the normal error and can't login


Everything works fine in local env

Using apache2 proxypass to docker container running my app

Any clues ?

Thank you.
Solution
Oh i'm actually not using the correct user model... Filament is using Admin model and not User. (might change that)
It works after updating the Admin model, stupid mistake!
Thank you !
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

403 Forbidden in production
FilamentFFilament / ❓┊help
2y ago
403 forbidden when production
FilamentFFilament / ❓┊help
2y ago
403 | Forbidden
FilamentFFilament / ❓┊help
2y ago
403 Forbidden in Production or Staging with FilamentPHP
FilamentFFilament / ❓┊help
12mo ago