Changeset View
Changeset View
Standalone View
Standalone View
src/app/Mail/PasswordReset.php
Show All 34 Lines | class PasswordReset extends Mailable | ||||
/** | /** | ||||
* Build the message. | * Build the message. | ||||
* | * | ||||
* @return $this | * @return $this | ||||
*/ | */ | ||||
public function build() | public function build() | ||||
{ | { | ||||
$appName = Tenant::getConfig($this->code->user->tenant_id, 'app.name'); | $appName = Tenant::getConfig($this->code->user->tenant_id, 'app.name'); | ||||
$supportUrl = Tenant::getConfig($this->code->user->tenant_id, 'app.support_url'); | |||||
$href = Utils::serviceUrl( | $href = Utils::serviceUrl( | ||||
sprintf('/password-reset/%s-%s', $this->code->short_code, $this->code->code), | sprintf('/password-reset/%s-%s', $this->code->short_code, $this->code->code), | ||||
$this->code->user->tenant_id | $this->code->user->tenant_id | ||||
); | ); | ||||
$this->view('emails.html.password_reset') | $this->view('emails.html.password_reset') | ||||
->text('emails.plain.password_reset') | ->text('emails.plain.password_reset') | ||||
Show All 36 Lines |