From the course: Building Laravel and Vue.js 2 Web Apps

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Enabling forgotten password and email verification

Enabling forgotten password and email verification

From the course: Building Laravel and Vue.js 2 Web Apps

Start my 1-month free trial

Enabling forgotten password and email verification

- On the login page, if I click forgot your password and try to submit this form, I'm going to see an authentication error. Because the default SMTP mail driver doesn't have a username and password set yet. But, there's an easy way to view the content of an email without actually sending it. And we can set that up in our environment file. I'm using control P to open that file even though it's right there in the route directory. And now, if we just change the value of mail driver from SMTP to Log, we can log emails instead of trying to send them. So after refreshing and resubmitting that form, I can view the log. Which is in storage, logs, and it looks like there's just one log file that was created just now. And if I scroll down to the bottom, you can see the email that would be sent if we were using SMTP or perhaps an API. We can even click this link with control click and verify that this feature is working. In Laravel 5.7, a new email verification feature was added, so that you can…

Contents