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