documentRepo = $documentRepo; } public function index() { $documents = Document::scope()->get(); return $this->listResponse($documents); } public function show(DocumentRequest $request) { $document = $request->entity(); return DocumentController::getDownloadResponse($document); } public function store(CreateDocumentRequest $request) { $document = $this->documentRepo->upload($request->all()); return $this->itemResponse($document); } public function update() { //stub } public function destroy($publicId) { //stub } }