lundi 29 mai 2017

Laravel app URL not working correctly when sending out mails

I have mails that get sent out using a cron on a centos box. The cron calls console/kernal.php where the function get's called to send out the mail

When sending the mail out from within a browser the urls in the mail are correct but when sending with the cron it changes the urls to localhost

I have this in my env file

APP_URL = example.com

And in my config/app.php I have this

'url' => env('APP_URL', 'example.com'),

I've done everything to book I believe. If I change the the url env var to http://example.com then the emails get sent out with the right url's but then entire site then get's redireted to http://http//example.com

What is going wrong here. Please help



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2rxQBpt
via IFTTT

Aucun commentaire:

Enregistrer un commentaire