documentRepo = $documentRepo; } public function index() { //stub } public function show(DocumentRequest $request) { $document = $request->entity(); return DocumentController::getDownloadResponse($document); } public function store(CreateDocumentRequest $request) { Log::info($request); $document = $this->documentRepo->upload($request->file); return $this->itemResponse($document); } public function update() { //stub } public function destroy($publicId) { //stub } }