of(ServicoManutencaoService::datatable()) ->toJson(); } public function create() { $this->auth(__FUNCTION__); return response()->json(ServicoManutencaoService::create(), Response::HTTP_CREATED); } public function list() { $this->auth(__FUNCTION__); return response()->json(ServicoManutencaoService::list(), Response::HTTP_OK); } public function store() { $this->auth(__FUNCTION__); return response()->json(ServicoManutencaoService::store(), Response::HTTP_CREATED); } public function edit($id) { $this->auth(__FUNCTION__); return response()->json(ServicoManutencaoService::edit($id), Response::HTTP_OK); } public function update($id) { $this->auth(__FUNCTION__); return response()->json(ServicoManutencaoService::update($id), Response::HTTP_OK); } public function destroy($id) { $this->auth(__FUNCTION__); return response()->json(ServicoManutencaoService::destroy($id), Response::HTTP_NO_CONTENT); } }