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;
    }
}

(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


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 !
Was this page helpful?