Skip to content

Commit bf05e31

Browse files
committed
feat: make user email unique
1 parent c320dd3 commit bf05e31

File tree

1 file changed

+1
-0
lines changed
  • packages/users/src/Resources/UserResource/Schemas

1 file changed

+1
-0
lines changed

packages/users/src/Resources/UserResource/Schemas/UserForm.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public static function configure(Schema $schema): Schema
3838
->label(__('Email'))
3939
->prefixIcon(fn (): BackedEnum => Heroicon::Envelope, true)
4040
->email()
41+
->unique()
4142
->required(),
4243

4344
Select::make('roles')

0 commit comments

Comments
 (0)