no message

This commit is contained in:
StudioTem committed 2023-07-21 13:56:07 +02:00
1 parent a90e24d3aa
commit b126a49c54
10 files changed
+55 -13

No files matched your search

+5 -1
View File
@@ -16,6 +16,7 @@ class MasterTaskEdited extends Mailable
public $mastertask;
public $difference;
public $creator;
/**
* Create a new message instance.
@@ -24,8 +25,11 @@ class MasterTaskEdited extends Mailable
*/
public function __construct(MasterTask $mastertask, $difference)
{
$creator = \App\Models\User::find($mastertask->created_by);
$this->mastertask = $mastertask;
$this->difference = $difference;
$this->creator = ($creator) ? $creator->firstname . ' ' . $creator->lastname : '';
}
/**
@@ -36,7 +40,7 @@ class MasterTaskEdited extends Mailable
public function envelope()
{
return new Envelope(
subject: 'Master Task Edited',
subject: 'Bol editovaný Task ' . $this->mastertask->project->code . ' - ' . $this->mastertask->title,
);
}