data = $data; } /** * Get the message envelope. */ public function envelope(): Envelope { return new Envelope( subject: 'Date de tâche modifiée - Comité des fêtes de Beaupont', ); } /** * Get the message content definition. */ public function content(): Content { return new Content( view: 'mails.updateRole', with: [ 'name' => $this->data['name'], 'lastname' => $this->data['lastname'], 'taskName' => $this->data['taskName'], 'oldStart' => $this->data['oldStart'], 'oldEnd' => $this->data['oldEnd'], 'newStart' => $this->data['newStart'], 'newEnd' => $this->data['newEnd'], 'eventName' => $this->data['eventName'], ] ); } /** * Get the attachments for the message. * * @return array */ public function attachments(): array { return []; } }