public function register(RegisterUser $request): JsonResource 	{ 		$oAuthData = []; 		$oAuthUser = null; 		$oAuthDriver = (string) $request->oauth_driver;  		if ($oAuthDriver && ($oAuthUser = $this->getOAuthUserFromToken($oAuthDriver, $request->oauth_token))) { 			$oAuthData = [ 				$oAuthDriver => $oAuthUser->getId(), 			]; 		}  		$user = Admin::create()->authParent()->create([ 			'name' => $request->name, 			'email' => $request->email, 			'password' => $request->password, 			'role_id' => setting('registration_api_role_id'), 			'email_verified_at' => $oAuthUser && !strcasecmp($oAuthUser->getEmail(), $request->email) ? formatTimestamp() : null, 			...$oAuthData, 		]);  		return $user->getModelResource(); 	}