我的應用程序部署在http://www.nepathya.com.但是當生成 URL 鏈接作為電子郵件的一部分時,基本 url 是localhost.public function handle(User $user){ foreach($this->mail_details as $email=>$token) { $user_name = $user->getUserName($email); $url = URL::to('/').'/dmf/task?token='.$token; Mail::to($email)->send(new SendEmailMailable($url, $user_name)); }}這似乎不是其他的問題servers。此外,當我從其他地方輸出值時URL::to('/'),它會輸出正確的基本 url,即http://www.nepathya.com.
- 2 回答
- 0 關注
- 125 瀏覽
添加回答
舉報
0/150
提交
取消