From f48aa7977b8f5374d782aec4e51d3f748f8d3da8 Mon Sep 17 00:00:00 2001 From: mohammad-alavi Date: Wed, 13 Oct 2021 09:52:07 +0330 Subject: [PATCH] refactor --- app/Containers/AppSection/User/Mails/UserForgotPasswordMail.php | 2 +- app/Containers/AppSection/User/Mails/UserRegisteredMail.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Containers/AppSection/User/Mails/UserForgotPasswordMail.php b/app/Containers/AppSection/User/Mails/UserForgotPasswordMail.php index 1ef6e6cdb..a0c998522 100644 --- a/app/Containers/AppSection/User/Mails/UserForgotPasswordMail.php +++ b/app/Containers/AppSection/User/Mails/UserForgotPasswordMail.php @@ -22,7 +22,7 @@ public function __construct(User $recipient, $token, $reseturl) $this->reseturl = $reseturl; } - public function build(): self + public function build(): static { return $this->view('appSection@user::user-forgotPassword') ->to($this->recipient->email, $this->recipient->name) diff --git a/app/Containers/AppSection/User/Mails/UserRegisteredMail.php b/app/Containers/AppSection/User/Mails/UserRegisteredMail.php index 40c8d89e4..60b0a6ada 100644 --- a/app/Containers/AppSection/User/Mails/UserRegisteredMail.php +++ b/app/Containers/AppSection/User/Mails/UserRegisteredMail.php @@ -18,7 +18,7 @@ public function __construct(User $user) $this->user = $user; } - public function build(): self + public function build(): static { return $this->view('appSection@user::user-registered') ->to($this->user->email, $this->user->name)