sendgrid 发送的密码重寄电子邮件链接。
这是我的邮件发送代码:
Mail::send(['custom.forget-password'],['token' => $token],function (Message $message) use ($user) {
$message->subject(config('app.name') . ' Password Reset Link');
$message->to($request->email);
});
这是我得到的错误:
Argument 1 passed to App\Http\Controllers\CustomPasswordController::App\Http\Controllers\{closure}() must be an instance of Message, instance of Illuminate\Mail\Message given