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