Skip to content

Commit

Permalink
Add unique (#685)
Browse files Browse the repository at this point in the history
Usernames have to be unique, trying to make a new user with an existing username results in a 500, this fixes it.
  • Loading branch information
notAreYouScared authored Oct 28, 2024
1 parent 1a3dc5c commit bc2df22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Filament/Resources/UserResource/Pages/ListUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ protected function getHeaderActions(): array
TextInput::make('username')
->alphaNum()
->required()
->unique()
->maxLength(255),
TextInput::make('email')
->email()
Expand Down

0 comments on commit bc2df22

Please sign in to comment.