protected function buildMessage($notifiable, Notification $notification)
    {
        $message = call_user_func_array([$notification, $this->getToMethod()], [$notifiable]);

        if (is_string($message)) {
            $message = new PushMessage($message);
        }

        return $message;
    }
protected function buildMessage($notifiable, Notification $notification)
    {
        $message = call_user_func_array([$notification, $this->getToMethod()], [$notifiable]);

        if (is_string($message)) {
            $message = new PushMessage($message);
        }

        return $message;
    }
protected function buildMessage ( $ notifiable , Notification $ notification ) { $ message = call_user_func_array ( [ $ notification , $ this -> getToMethod ( ) ] , [ $ notifiable ] ) ; if ( is_string ( $ message ) ) { $ message = new PushMessage ( $ message ) ; } return $ message ; }
Format the message.

@param  mixed $notifiable
@param  \Illuminate\Notifications\Notification  $notification
@return \Edujugon\PushNotification\Messages\PushMessage
Format the message .