Пример #1
0
 /**
  * Store a newly created PointPrice in storage.
  *
  * @param CreatePointPriceRequest $request
  *
  * @return Response
  */
 public function store(CreatePointPriceRequest $request)
 {
     $input = $request->all();
     $pointPrice = $this->pointPriceRepository->create($input);
     Flash::success('PointPrice saved successfully.');
     return redirect(route('pointPrices.index'));
 }
 /**
  * Store a newly created PointPrice in storage.
  * POST /pointPrices
  *
  * @param Request $request
  *
  * @return Response
  */
 public function store(Request $request)
 {
     if (sizeof(PointPrice::$rules) > 0) {
         $this->validateRequestOrFail($request, PointPrice::$rules);
     }
     $input = $request->all();
     $pointPrices = $this->pointPriceRepository->create($input);
     return $this->sendResponse($pointPrices->toArray(), "PointPrice saved successfully");
 }