This commit is contained in:
2023-12-03 15:10:54 +05:00
parent b4521e6f24
commit f5fd590b08

View File

@@ -81,7 +81,7 @@ class User extends Resource
Text::make(__('Username'), 'username')
->sortable()
->rules('required', 'string', new OnlyLetters(), 'max:250')
->rules('required', 'string', 'alpha_dash:ascii', 'max:250')
->creationRules('unique:users,username')
->updateRules('unique:users,username,{{resourceId}}'),