/**
  * Store a newly created Kardex in storage.
  *
  * @param CreateKardexRequest $request
  *
  * @return Response
  */
 public function store(CreateKardexRequest $request)
 {
     $input = $request->all();
     $kardex = $this->kardexRepository->create($input);
     Flash::success('Kardex saved successfully.');
     return redirect(route('kardexes.index'));
 }
 /**
  * Store a newly created Kardex in storage.
  * POST /kardexes
  *
  * @param Request $request
  *
  * @return Response
  */
 public function store(Request $request)
 {
     if (sizeof(Kardex::$rules) > 0) {
         $this->validateRequestOrFail($request, Kardex::$rules);
     }
     $input = $request->all();
     $kardexes = $this->kardexRepository->create($input);
     return $this->sendResponse($kardexes->toArray(), "Kardex saved successfully");
 }