src/Models/Database/Product.php
public function saveProduct($data)
    {
        Event::fire(new ProductBeforeSave($data));

        $this->update($data);
        $this->saveProductImages($data);
        $this->saveCategoryFilters($data);
        $this->saveProductCategories($data);
        $this->saveProductProperties($data);
        $this->saveProductAttributes($data);
        $this->saveProductDownloadable($data);

        Event::fire(new ProductAfterSave($this, $data));

        return $this;
    }
public function saveProduct($data)
    {
        Event::fire(new ProductBeforeSave($data));

        $this->update($data);
        $this->saveProductImages($data);
        $this->saveCategoryFilters($data);
        $this->saveProductCategories($data);
        $this->saveProductProperties($data);
        $this->saveProductAttributes($data);
        $this->saveProductDownloadable($data);

        Event::fire(new ProductAfterSave($this, $data));

        return $this;
    }
public function saveProduct ( $ data ) { Event :: fire ( new ProductBeforeSave ( $ data ) ) ; $ this -> update ( $ data ) ; $ this -> saveProductImages ( $ data ) ; $ this -> saveCategoryFilters ( $ data ) ; $ this -> saveProductCategories ( $ data ) ; $ this -> saveProductProperties ( $ data ) ; $ this -> saveProductAttributes ( $ data ) ; $ this -> saveProductDownloadable ( $ data ) ; Event :: fire ( new ProductAfterSave ( $ this , $ data ) ) ; return $ this ; }
Update the Product and Product Related Data.

@var array $data
@return void
Update the Product and Product Related Data .