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

construct's avatar

Email Verification via API with 5.7

Please forgive me for my lack of ignorance, but has anyone managed to get the email verification working in an API environment? Currently I have followed what was stated here

https://stackoverflow.com/questions/52362927/laravel-email-verification-5-7-using-rest-api

and everything seems to work, however when I click on the "Verify Email Address" I get transferred to my incorrect login API route (By incorrect I mean /api/login instead of /login). I am aware that this has a lot to do with

$this->middleware('auth');

So my question is how do I disable the redirect for /email/verify, or how exactly would I implement the following github repo in to my current project.

https://github.com/iliyaZelenko/laravel5.7-vue-cli3-boilerplate

I don't want to clone this in to my current project and have everything break.

Any suggestions?

Thanks.

0 likes
0 replies

Please or to participate in this conversation.