promotionService = PromotionStations::where($field,$value); return $this->promotionService->get(); } public function store($promotion_id, $station_ids) { foreach ($station_ids as $key => $id) { $this->promotionService = new PromotionStations; $this->promotionService->promotion_id = $promotion_id; $this->promotionService->station_id = $id; $this->promotionService->save(); } } public function delete($promotion_id) { $this->promotionService = PromotionStations::where('promotion_id',$promotion_id); $this->promotionService->delete(); } }