我发送电子邮件与laravel和sendgrid一切正常。但是当我点击电子邮件中包含的其中一个链接时,它给了我一个完全不同的链接和谷歌抛出不安全的错误。网站正在通过https和即时服务使用伪造来管理它
这是我的代码
<?php
namespace App\Notifications;
use App\User;
use App\Project;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
class ProjectPublished extends Notification implements ShouldQueue
{
use Queueable;
protected $project;
/**
* Create a new notification instance.
*
* @return void
*/
public function __construct(Project $project)
{
$this->project = $project;
}
/**
* Get the notification's delivery channels.
*
* @param mixed $notifiable
* @return array
*/
public function via($notifiable)
{
return ['mail'];
}
/**
* Get the mail representation of the notification.
*
* @param mixed $notifiable
* @return \Illuminate\Notifications\Messages\MailMessage
*/
public function toMail($notifiable)
{
return (new MailMessage)
->greeting('Hello there')
->subject('NEW: '.$this->project->title)
->line('the email body goes here')
->action('Check it out', url('posts/'.$this->project->title));
}
/**
* Get the array representation of the notification.
*
* @param mixed $notifiable
* @return array
*/
public function toArray($notifiable)
{
return [
//
];
}
}
点击链接时Chrome会给我带来此安全错误
Your connection is not private
Attackers might be trying to steal your information from url8580.mysite.io (for example, passwords, messages, or credit cards). Learn more
NET::ERR_CERT_COMMON_NAME_INVALID
由于某种原因url8580被附加到url.Any帮助将非常appriciated