Skip to content

Commit

Permalink
feat: make User name and email required
Browse files Browse the repository at this point in the history
  • Loading branch information
sWalbrun committed Feb 7, 2024
1 parent e9c3699 commit 1121943
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Filament/Resources/UserResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ public static function form(Form $form): Form
return $form
->schema([
Forms\Components\TextInput::make(User::COL_NAME)
->label(trans('Name')),
->label(trans('Name'))
->required(),
Forms\Components\TextInput::make(User::COL_EMAIL)
->email()
->required()
->label(trans('E-Mail')),
Forms\Components\Select::make(User::COL_CONTRIBUTION_GROUP)
->label(trans('Contribution group'))
Expand Down

0 comments on commit 1121943

Please sign in to comment.