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