fix mail
This commit is contained in:
1 parent
00da270b23
commit
f410fe83c9
2 files changed
+3
-7
No files matched your search
@@ -55,7 +55,7 @@ class UserNotifications extends Component implements HasActions, HasSchemas, Has
|
||||
|
||||
if ($recipient) {
|
||||
if ($data['notify_by_email']) {
|
||||
Mail::to($recipient)->send(new UserNotification('NUH-Odds sendder: '.auth()->user()->name, $data['message']));
|
||||
Mail::to($recipient)->send(new UserNotification($data['message']));
|
||||
}
|
||||
Notification::make()
|
||||
->title($data['message'])
|
||||
|
||||
@@ -14,15 +14,11 @@ class UserNotification extends Mailable
|
||||
|
||||
protected string $message;
|
||||
|
||||
protected string $subject;
|
||||
|
||||
/**
|
||||
* Create a new message instance.
|
||||
*/
|
||||
public function __construct($subject, $message)
|
||||
public function __construct($message)
|
||||
{
|
||||
$this->subject = $subject;
|
||||
|
||||
$this->message = $message;
|
||||
}
|
||||
|
||||
@@ -32,7 +28,7 @@ class UserNotification extends Mailable
|
||||
public function envelope(): Envelope
|
||||
{
|
||||
return new Envelope(
|
||||
subject: $this->subject,
|
||||
subject: 'NUH-Odds from: '.auth()->user()->name,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user