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 SubTaskEdited extends Mailable
public $subtask;
public $difference;
public $creator;
/**
* Create a new message instance.
@@ -24,6 +25,9 @@ class SubTaskEdited extends Mailable
*/
public function __construct(SubTask $subtask, array $difference)
{
$creator = \App\Models\User::find($subtask->created_by);
$this->creator = ($creator) ? $creator->firstname . ' ' . $creator->lastname : '';
$this->subtask = $subtask;
$this->difference = $difference;
}
@@ -36,7 +40,7 @@ class SubTaskEdited extends Mailable
public function envelope()
{
return new Envelope(
subject: 'Sub Task Edited',
subject: 'Bol editovaný Sub Task ' . $this->subtask->mastertask->project->code . ' - ' . ($this->subtask->title) ?: $this->subtask->mastertask->title,
);
}