Closed salmansafdar778 closed 2 years ago
public function toFcm($notifiable)
{
return FcmMessage::create()
->setNotification(
\NotificationChannels\Fcm\Resources\Notification::create()
->setTitle('Excel uploading status')
->setBody($this->data['type'] . ' data uploading failed!')
->setImage('imageUrl')
)
->setWebpush(
WebpushConfig::create()
->setFcmOptions(WebpushFcmOptions::create())
);
}
how we use this function setWebpush(NotificationChannels\Fcm\Resources\WebpushConfig $webpushConfig)
what's the $webpushConfig?