This commit is contained in:
salam committed 2026-02-08 08:48:55 +01:00
1 parent 00da270b23
commit f410fe83c9
2 files changed
+3 -7

No files matched your search

+1 -1
View File
@@ -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'])
+2 -6
View File
@@ -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,
);
}