Skip to content

Commit

Permalink
Fix required validationMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
RMartinOscar committed Jan 27, 2025
1 parent f032ecf commit 8a27ecc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ public function form(Form $form): Form
->rules(EggVariable::$validationRules['env_variable'])
->validationMessages([
'unique' => 'A variable with this name already exists.',
'required' => ' The environment variable field is required. ',
'*' => 'This environment variable is reserved and cannot be used.',
])
->required(),
Expand Down
1 change: 1 addition & 0 deletions app/Filament/Admin/Resources/EggResource/Pages/EditEgg.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ public function form(Form $form): Form
->rules(EggVariable::$validationRules['env_variable'])
->validationMessages([
'unique' => 'A variable with this name already exists.',
'required' => ' The environment variable field is required. ',
'*' => 'This environment variable is reserved and cannot be used.',
])
->required(),
Expand Down

0 comments on commit 8a27ecc

Please sign in to comment.