Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

aptxrx's avatar

MustVerifyEmail 403 Error in fresh install of Laravel 12 but not in Laravel 11

As the title says. I install Laravel 12 and I get a 403 invalid signature when my User model is set with MustVerifyEmail. I ran around in circles for a few hours trying different things out and then decided to install Laravel 11 and ran into no 403 invalid signature issue.

This is on a fresh install, without adding any routes, models, migrations, nothing.

The only change made was to the .env file for APP_URL, APP_NAME and all MAIL/MAILER settings..

Any ideas why? I want to run latest v12.

0 likes
2 replies
aptxrx's avatar

The only changes made to the User model was the uncommenting of MustVerifyEmail and the addition of implements MustVerifyEmail. The .env APP_URL included an https:// url and APP_NAME had the application name.

The email changes in .env were from log to smtp, smtps for ssl/tls, mail server url, username, password, port, send_from

no changes made to the services.php

this was done the same way with both 11 and 12 , 12 failed, 11 worked. 12 keeps reporting invalid signature.

mkocurek's avatar

I‘m running into the exact same problem but on AWS EB environment. Locally everything works fine but not on production.

Did you figured out the problem and how to fix it?

Please or to participate in this conversation.