app/Notifications/AlertNotification.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 [
            'product_name' => $this->product->name,
            'product_id' => $this->product->product_id,
        ];
    }
public function toDatabase ( $ notifiable ) { return [ 'product_name' => $ this -> product -> name , 'product_id' => $ this -> product -> product_id , ] ; }
Get the array representation of the notification.
Get the array representation of the notification .