public function update(StoreUser $request, Admin $id): RedirectResponse 	{ 		$id = $id->authParent;  		$this->validate($request, [ 			'email' => ['required', 'max:50', 'email', 'unique:' . $id::class . ',email,' . $id->id], 		]);  		$id->update([ 			'name' => $request->name, 			'email' => $request->email, 			'active' => $request->boolean('active'), 			'allow_push_notifications' => $request->boolean('allow_push_notifications'), 			'timezone' => $request->timezone, 			'locale' => $request->locale, 			'role_id' => $request->role_id, 			'email_verified_at' => $request->boolean('verified') ? formatTimestamp($id->email_verified_at) : null, 		]);  		if ($request->password) { 			$id->update([ 				'password' => $request->password, 			]); 		}  		$id->storage()->handle($request->media);  		$id = $id->user;  		$id->adminMarkets()->delete();  		foreach (($request->markets ?? []) as $market_id) { 			$id->adminMarkets()->create([ 				'market_id' => $market_id, 			]); 		}  		$id->update([ 			'active_market' => $id->markets()->first()?->id, 		]);  		return $this->redirectFromSave('users.list'); 	}