activity = $activity; } /** * Get the notification's delivery channels. * * @return array */ public function via(object $notifiable): array { return [WebPushChannel::class]; } /** * Get the web push representation of the notification. */ public function toWebPush(object $notifiable): WebPushMessage { return (new WebPushMessage) ->title('New Activity') ->icon('/apple-touch-icon.png') ->body($this->activity['content']) ->action('View', 'view') ->data(['url' => $this->activity['url']]); } /** * Get the array representation of the notification. * * @return array */ public function toArray(object $notifiable): array { return [ // ]; } }