From 59598e29be142cf614e2678fda899b7c2f0a87bd Mon Sep 17 00:00:00 2001 From: Giovanni-Josserand Date: Sat, 28 Mar 2026 17:57:57 +0100 Subject: [PATCH] create updatePassword mail --- app/Mail/UpdatePasswordMail.php | 58 +++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 app/Mail/UpdatePasswordMail.php diff --git a/app/Mail/UpdatePasswordMail.php b/app/Mail/UpdatePasswordMail.php new file mode 100644 index 0000000..7feb084 --- /dev/null +++ b/app/Mail/UpdatePasswordMail.php @@ -0,0 +1,58 @@ +data = $data; + } + + /** + * Get the message envelope. + */ + public function envelope(): Envelope + { + return new Envelope( + subject: 'Mot de passe mis à jour - Comité des fêtes de Beaupont', + ); + } + + /** + * Get the message content definition. + */ + public function content(): Content + { + return new Content( + view: 'mails.updatePassword', + with: [ + 'name' => $this->data['name'], + 'lastname' => $this->data['lastname'], + ] + ); + } + + /** + * Get the attachments for the message. + * + * @return array + */ + public function attachments(): array + { + return []; + } +}