Tagged: env

Change localhost to correct domain path in Laravel

Problem: when resetting password or go to other routes, the path should no longer be a localhost but my new domain name. Still, the domain from URL is localhost.

Update .env file to update Laravel domain name

Solution: Update .env file, from APP_URL=http://localhost to APP_URL=https://yourdomain.com

and remember to clean config setting by enter below command:

php artisan config:clear
Close Bitnami banner