middleware('auth:sanctum'); $this->roleAllow(UserRole::NORMAL_ADMIN); } protected function getParam(): IParam { return $this->param; } protected function run(Request $request): JsonResponse { $param = $this->param; // 変更先ユーザーの取得 $newHandler = User::findOrFail($param->handlerId); $this->manager->initById($param->id) ->checkTimestamp($param->timestamp) ->changeHandler($newHandler) ->update(); return $this->successResponse(); } }