Replace localhost with real domain name in reset password of Laravel 5

Viewed 8474

I am using the default resetting passwords in Laravel 5.4. The function works fine, and the email with reset password link is successfully sent/received.

However, it still not show the real domain but 'localhost' like something below:

http://localhost/password/reset/4c16a78f3c1216de566bc0689694980ac53555311d0214bbb73fbc72870a91f5

Can you tell me how to replace 'localhost' with domainname.com?

And is it OK to do this with http:// instead of https:// ?

3 Answers

You can update both .env and config>app.php files with the correct domain url

Related