created_by); $this->mastertask = $mastertask; $this->difference = $difference; $this->creator = ($creator) ? $creator->firstname . ' ' . $creator->lastname : ''; } /** * Get the message envelope. * * @return \Illuminate\Mail\Mailables\Envelope */ public function envelope() { return new Envelope( subject: 'Bol editovaný Task ' . $this->mastertask->project->code . ' - ' . $this->mastertask->title, ); } /** * Get the message content definition. * * @return \Illuminate\Mail\Mailables\Content */ public function content() { return new Content( view: 'emails.task.master_task_edited', ); } /** * Get the attachments for the message. * * @return array */ public function attachments() { return []; } }