app/Notifications/OrderNotification.php
/**
     * Get the array representation of the notification.
     *
     * @param  mixed  $notifiable
     * @return array
     */
Get the array representation of the notification.
@param  mixed  $notifiable
@return array
Get the array representation of the notification . @param mixed $notifiable @return array
public function toDatabase($notifiable)
    {
        return [
            'title'=> ' New Order From '.$this->order->name,
            'body'=> ' Order for '.$this->order->product_name. ' of ' .$this->order->size.'Size '.' and Quantity' . $this->order->Quantity,
        ];
    }
public function toDatabase ( $ notifiable ) { return [ 'title' => ' New Order From ' . $ this -> order -> name , 'body' => ' Order for ' . $ this -> order -> product_name . ' of ' . $ this -> order -> size . 'Size ' . ' and Quantity' . $ this -> order -> Quantity , ] ; }
Get the array representation of the notification.
Get the array representation of the notification .