Exemplo n.º 1
0
 /**
  * Implement create($input)
  */
 public function create($input)
 {
     $article = Item::create($input);
     ItemKit::create(['parentID' => $article->objectID, 'objectID' => '0', 'Quantity' => '0']);
     // update here to add the _additional attributes
     Log::info('Create Article', $input);
     $updatedArticle = $this->update($article->objectID, $input);
     //dd(__METHOD__.'('.__LINE__.')',compact('input','article','updatedArticle'));
     return $updatedArticle;
 }
Exemplo n.º 2
0
 /**
  * Implement create($input)
  */
 public function create($input)
 {
     $upc = Item::create($input);
     ItemKit::create(['parentID' => '0', 'objectID' => $upc->objectID, 'Quantity' => '0']);
     // update here to add the _additional attributes
     //$updatedUPC = $this->update($upc->objectID, $input);
     //dd(__METHOD__.'('.__LINE__.')',compact('input','upc','updatedUPC'));
     return $upc;
 }