diff --git a/app/Events/Users.php b/app/Events/Users.php index eda25b6..c74471b 100644 --- a/app/Events/Users.php +++ b/app/Events/Users.php @@ -29,7 +29,7 @@ class Users extends Event implements ShouldBroadcastNow * * @return void */ - public function __construct(User|int $user, $event, array|Model $data) + public function __construct(User|int $user, string $event, array|Model $data) { // init vars $this->sent_at = Carbon::now(); diff --git a/app/Notifications/WebNotification.php b/app/Notifications/WebNotification.php index 33ab230..d84ccae 100644 --- a/app/Notifications/WebNotification.php +++ b/app/Notifications/WebNotification.php @@ -12,21 +12,18 @@ class WebNotification extends Notification use Queueable; public array|Model $message = []; - public string $event = 'notification'; - /** * Create a new notification instance. * * @return void */ - public function __construct(array|Model $message, string $event) + public function __construct(array|Model $message) { if ($message instanceof Model) { $message = $message->toArray(); } $this->message = $message; - $this->event = $event; } /**