app/Notifications/WebPushNotification.php
/**
     * Get the web push representation of the notification.
     *
     * @param  mixed  $notifiable
     * @param  mixed  $notification
     * @return \Illuminate\Notifications\Messages\DatabaseMessage
     */
Get the web push representation of the notification.
@param  mixed  $notifiable
@param  mixed  $notification
@return \Illuminate\Notifications\Messages\DatabaseMessage
Get the web push representation of the notification . @param mixed $notifiable @param mixed $notification @return \ Illuminate \ Notifications \ Messages \ DatabaseMessage
public function toWebPush($notifiable, $notification)
    {
        return (new WebPushMessage)
            ->title($this->notification->title ?? 'Command finished')
            ->body($this->notification->body ?? 'The command has been executed and hopefully worked correctly!');
    }
public function toWebPush ( $ notifiable , $ notification ) { return ( new WebPushMessage ) -> title ( $ this -> notification -> title ?? 'Command finished' ) -> body ( $ this -> notification -> body ?? 'The command has been executed and hopefully worked correctly!' ) ; }
Get the web push representation of the notification.
Get the web push representation of the notification .