public function update(StoreRole $request, Role $id): RedirectResponse 	{ 		$id->update([ 			'name' => $request->name, 			'protected' => $request->boolean('protected'), 			'mode' => $request->mode, 			'api_rate_limit' => $request->api_rate_limit, 			'api_rate_limit_backoff_minutes' => $request->api_rate_limit_backoff_minutes, 			'disallowed_methods' => $request->disallowed_methods, 		]);  		$id->routes()->delete(); 		$routes = $request->routes ?? [];  		foreach ($routes as $route) { 			$id->routes()->create([ 				'route' => $route, 			]); 		}  		return $this->redirectFromSave('roles.list'); 	}