Ejemplo n.º 1
0
 public function removeProductDefaultImage($p_id)
 {
     $this->removeItemImageFile($p_id, 'default');
     // removes actual file
     $d_arr = array('default_img' => '', 'default_ext' => '', 'default_width' => 0, 'default_height' => 0, 'default_orig_img_width' => 0, 'default_orig_img_height' => 0, 'default_title' => '');
     ProductImage::whereRaw('product_id = ?', array($p_id))->update($d_arr);
     return true;
 }