diff --git a/src/Actions/CreateNewUser.php b/src/Actions/CreateNewUser.php index d54a8a9..3102b47 100644 --- a/src/Actions/CreateNewUser.php +++ b/src/Actions/CreateNewUser.php @@ -84,7 +84,7 @@ private function buildValidator(array $input): Illuminate return Validator::make($input, static::createValidationRules()); } - private function getUserData(array $input): array + public function getUserData(array $input): array { $userData = [ 'name' => $input['name'], @@ -99,7 +99,7 @@ private function getUserData(array $input): array return $userData; } - private static function usernameRules(): array + protected static function usernameRules(): array { $rules = ['required', 'string', 'max:255', 'unique:users'];