/** * Update the specified resource in storage. * * @param int $id * @return Response */ public function update(Project $project, Document $document, Request $request) { $document->update($request->all()); return response()->json(['status' => 'success', 'message' => 'Document updated.']); }