duan201444 2019-06-17 06:05
浏览 570
已采纳

在服务器上部署后,Laravel 5.8电子邮件验证链接或APP_URL将返回localhost

I've configure everything in .env & config/app.php in my Laravel 5.8 for production preparation in heroku like this :

APP_NAME=Laraclass
APP_ENV=production
APP_KEY=xxx
APP_DEBUG=true
APP_URL=http://larafresh.herokuapp.com

And then I try to create an account and check my email verification feature, and the verification link or APP_URL inside the email returns to http://localhost:8000, I've tried to restart my app, and clear the config but still stuck at here. I don't know what happen here, because on another link that I've created (outside of email function), it returns to APP_URL that I've set.

  • 写回答

1条回答 默认 最新

  • dsvjmc0907 2019-06-17 06:28
    关注

    First clear caching of config.

    php artisan config:clear
    

    Then restart app.

    php artisan serve 
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?