public function create(array $input): User 	{ 		if (!setting('registration_active')) { 			abort(403); 		}  		Validator::make($input, [ 			'name' => ['required', 'string', 'max:50'], 			'email' => ['required', 'email', 'max:50', 'unique:' . User::class], 			'password' => $this->passwordRules(), 			'timezone' => ['required', 'timezone'], 			'locale' => ['nullable', 'string', Rule::in(array_column(Language::ui(), 'value'))], 			'avatar' => ['nullable', 'url', 'max:250'], 			'oauth_driver' => ['nullable', 'string', 'required_with:oauth_id', new Enum(OAuthDriver::class)], 			'oauth_id' => ['nullable', 'string', 'max:128', 'required_with:oauth_driver'], 		])->validate();  		$data = [ 			'name' => $input['name'], 			'email' => $input['email'], 			'password' => $input['password'], 			'role_id' => setting('registration_role_id'), 			'timezone' => $input['timezone'], 			'locale' => $input['locale'] ?? null, 			'avatar' => $input['avatar'] ?? null, 		];  		$user = Admin::create()->authParent()->create($data);  		if ($input['oauth_driver'] ?? null) { 			$user->connectOAuthDriver(OAuthDriver::from($input['oauth_driver']), $input['oauth_id']); 		}  		return $user; 	}