json($this->get(Procedimento::class)->get(), Response::HTTP_OK); } public function show($id) { return response()->json($this->get(Procedimento::class, $id), Response::HTTP_OK); } public function autocomplete() { $procedimentos = Procedimento::with([]); return datatables()->of($procedimentos)->toJson(); } }