Error when transferring the project to prod: 403FORBIDDEN
Hello everyone when transferring a project from local to production in the filament, I get error 403
FORBIDDEN. Here's mine User.php :
11 Replies
Solution
I fixed the error when logging in, but now I'm facing error 403
FORBIDDEN during registration
What did you put in canAccessPanel()?
What goes in there needs to be specific to your app. And return if the user is authorized or not to access the panel.
After registration, I get to the page with the creation of the company: http://localhost:8000/dashboard/new , but I get an error .
User.php:
You not using the email verification trait and you are saying the user can’t access without verifying their email. Meaning they aren’t authorized until they do that.
I inserted it into the provider ->email Verification(), but it doesn't work
Your user class doesn’t have the trait in the code you shared above.
Laravel - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
Yes, you're right. I missed the moment. But now I have fixed everything, and I am faced with the error that after registration I still have a 403 error, but now I receive an email with verification. But when you click on the verification button, the user is not verified in the DB
You’ll have to debug that one yourself. Sorry. That sounds like something at the Laravel level and not Filament.
Okay, thanks for taking the time to help me and achieve a bug fix, I appreciate it.