Validate these

This commit is contained in:
Lance Pioch 2024-05-11 23:44:12 -04:00
parent c5b441e54a
commit 7f6e4a18c1

View File

@ -21,7 +21,10 @@ class CreateUser extends CreateRecord
return $form return $form
->schema([ ->schema([
Section::make()->schema([ Section::make()->schema([
Forms\Components\TextInput::make('username')->required()->maxLength(191), Forms\Components\TextInput::make('username')
->alphaNum()
->required()
->maxLength(191),
Forms\Components\TextInput::make('email')->email()->required()->maxLength(191), Forms\Components\TextInput::make('email')->email()->required()->maxLength(191),
Forms\Components\TextInput::make('password') Forms\Components\TextInput::make('password')