/**
  * @param GammaSelection $gamma
  * @param $notification
  */
 protected function insertNewGammaSelection(GammaSelection $gamma, $notification)
 {
     $instancePayload = ['category_id' => $notification->category->id, 'brand_id' => $notification->brand->id, 'account_id' => $notification->account->id];
     $selection = $gamma->newInstance($instancePayload);
     $selection->save();
 }
Пример #2
0
 /**
  * @param GammaSelection $gamma
  */
 protected function insertGamma(GammaSelection $gamma)
 {
     //insert this as a gamma selection
     $selected = $gamma->newInstance(['category_id' => $this->category->id, 'brand_id' => $this->brand->id, 'account_id' => $this->account->id]);
     $selected->save();
 }