of(GerenciamentoService::datatable()) ->toJson(); } public function list() { $this->auth(__FUNCTION__); return response()->json(GerenciamentoService::list(), Response::HTTP_OK); } public function autocompleteUsuarioSolicitante() { return datatables() ->of(GerenciamentoService::autocompleteUsuarioSolicitante()) ->toJson(); } public function edit($id) { $this->auth(__FUNCTION__); return response()->json(GerenciamentoService::edit($id), Response::HTTP_OK); } public function update($id) { $this->auth(__FUNCTION__); return response()->json(GerenciamentoService::update($id), Response::HTTP_OK); } }