Problem with Admin Panel Authentication - 403 Forbidden on Production
I'm having an issue with my Filament admin panel. On localhost, everything works fine, but on production, after logging in, I get a 403 Forbidden error.
Here’s my setup:
What I’ve done so far:
Here’s my setup:
- I created a custom
Adminmodel and set up a new guardadmininconfig/auth.php:
- I have two panels:
UserPanelusing theUsermodel and the defaultwebguard.AdminPanelusing theAdminmodel and theadminguard.
- My `AdminPanelProvider.php` config:
What I’ve done so far:
- Tested locally: Works fine.
- On production: The login page loads, but after logging in, it redirects and gives a 403 Forbidden.
- The guard setup in
auth.phpis correct. - The
Adminmodel is set up and has users in production. - The session domain and cookies in
.envseem correct. - Cleared all caches (
config:clear,route:clear,cache:clear, etc.).