public function download_image_product($id) { $data = ProdcutImageModel::findOrfail($id); return response()->download($data->image_path); }
/** * send product image for product Image table * * @return collection */ public static function getProductImageById($id) { return ProdcutImageModel::where('product_id', $id)->get(); }