Laravel Task Scheduler在发送邮件时将地址显示为localhost

I am trying to send email via laravel task scheduller from database.

But, links are shown as localhost/blabla in received emails. Same email template is working perfectly when i'm sending emails inside controller.

<a href="{{route('institution.profile', $inst_slug)}}">

This is the link inside email.

In Task Scheduler, it transforms something like this: localhost/blabla But in controller, it transform normally like this: domainname.com/blabla

I think task scheduler does not know domainname, but how can i identify domain name for cron or task scheduler i don't know.

Thanks for helping.

查看全部
dounao5856
dounao5856
2015/11/13 13:33
  • laravel
  • php
  • email
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

1个回复