我創(chuàng)建了一個(gè)通知類,MailResetPasswordNotification并使用以下內(nèi)容編輯了通知的郵件表示。public function toMail($notifiable){ $link = url("/password/reset/?token=".$this->token); return (new MailMessage) ->view('reset.emailer') ->from('info@example.com') ->subject('Reset your password') ->line("Hey, We've successfully changed the text ") ->action('Reset Password', $link) ->attach('reset.attachment') ->line('Thank you!');}我還找到了用于重置密碼的文件,vendor/laravel/framework/src/illuminate/Auth/Passwords/CanResetPassword.php并用我的方法覆蓋了它,例如:namespace Illuminate\Auth\Passwords;use Illuminate\Auth\Notifications\ResetPassword as MailResetPasswordNotification;trait CanResetPassword{ public function getEmailForPasswordReset() { return $this->email; } public function sendPasswordResetNotification($token) { $this->notify(new App\Notifications\MailResetPasswordNotification($token)); }}但是,我收到以下錯(cuò)誤。找不到類“Illuminate\Auth\Passwords\App\Notifications\MailResetPasswordNotification”
未找到用于郵件重置的 Lavarel Illuminate 類
天涯盡頭無(wú)女友
2022-06-11 10:13:01