Relative Content

Tag Archive for phplaravellaravel-filamentfilamentphprailway

Laraves Filament Railway Deploy 403 error

I am working with Laravel and Filament, and I deployed my project on Railway. The problem is that I get a 403 status when I try to log in; it redirects me to 403. I checked the Filament documentation and found this:
https://filamentphp.com/docs/3.x/panels/installation#allowing-users-to-access-a-panel
But when I implement it in my code, it throws an error:
“Method ‘AppModelsUser::canAccessPanel()’ is not compatible with method ‘FilamentModelsContractsFilamentUser::canAccessPanel()’.”
Attached is an image of the error as well.
Thanks for the help!