mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
no message
This commit is contained in:
1 parent
a90e24d3aa
commit
b126a49c54
10 files changed
+55
-13
No files matched your search
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user