notificationtest in progress
This commit is contained in:
@@ -30,7 +30,7 @@ class NewActivityNotification extends Notification
|
||||
*/
|
||||
public function via(object $notifiable): array
|
||||
{
|
||||
return [WebPushChannel::class];
|
||||
return ['database', WebPushChannel::class];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -46,15 +46,6 @@ class NewActivityNotification extends Notification
|
||||
->action('View', 'view')
|
||||
->data(['url' => $this->activity['url']]);
|
||||
|
||||
switch (get_class($this->activity)) {
|
||||
case Message::class:
|
||||
/** @var Chat $chat */
|
||||
$chat = $this->activity->chat;
|
||||
|
||||
$result->data(['url' => $chat->subjectUrl]);
|
||||
break;
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
@@ -66,7 +57,8 @@ class NewActivityNotification extends Notification
|
||||
public function toArray(object $notifiable): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
'content' => $this->activity['content'],
|
||||
'url' => $this->activity['url'],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user