public function postUpload(CreateDocumentRequest $request)
 {
     $result = $this->documentRepo->upload($request->all(), $doc_array);
     if (is_string($result)) {
         return Response::json(['error' => $result, 'code' => 400], 400);
     } else {
         return Response::json(['error' => false, 'document' => $doc_array, 'code' => 200], 200);
     }
 }
 /**
  * @param CreateDocumentRequest $request
  *
  * @return \Illuminate\Http\Response
  */
 public function store(CreateDocumentRequest $request)
 {
     $document = $this->documentRepo->upload($request->all());
     return $this->itemResponse($document);
 }