fix(register): fix unique validation
This commit is contained in:
parent
f65c2a1b03
commit
b5b23a254b
@ -35,7 +35,7 @@ public function form(Schema $schema): Schema
|
|||||||
->autocomplete(false)
|
->autocomplete(false)
|
||||||
->required()
|
->required()
|
||||||
->maxLength(254)
|
->maxLength(254)
|
||||||
->unique()
|
->unique('users', 'email')
|
||||||
->email(),
|
->email(),
|
||||||
|
|
||||||
TextInput::make('username')
|
TextInput::make('username')
|
||||||
@ -46,7 +46,7 @@ public function form(Schema $schema): Schema
|
|||||||
->minLength(5)
|
->minLength(5)
|
||||||
->maxLength(20)
|
->maxLength(20)
|
||||||
->regex('/^[a-zA-Z0-9_.-]+$/')
|
->regex('/^[a-zA-Z0-9_.-]+$/')
|
||||||
->unique(),
|
->unique('users', 'username'),
|
||||||
|
|
||||||
TextInput::make('password')
|
TextInput::make('password')
|
||||||
->label('Kata Sandi')
|
->label('Kata Sandi')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user