Changeset View
Changeset View
Standalone View
Standalone View
src/app/Mail/PasswordReset.php
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | public function build() | ||||
$this->view('emails.password_reset') | $this->view('emails.password_reset') | ||||
->subject(__('mail.passwordreset-subject', ['site' => \config('app.name')])) | ->subject(__('mail.passwordreset-subject', ['site' => \config('app.name')])) | ||||
->with([ | ->with([ | ||||
'site' => \config('app.name'), | 'site' => \config('app.name'), | ||||
'code' => $this->code->code, | 'code' => $this->code->code, | ||||
'short_code' => $this->code->short_code, | 'short_code' => $this->code->short_code, | ||||
'link' => sprintf('<a href="%s">%s</a>', $href, $href), | 'link' => sprintf('<a href="%s">%s</a>', $href, $href), | ||||
'username' => $this->code->user->name | 'username' => $this->code->user->name(true) | ||||
]); | ]); | ||||
return $this; | return $this; | ||||
} | } | ||||
} | } |