Skip to content

Commit a6f2122

Browse files
Update validation rules for 'Remark' and 'Nama File' fields to include regex and max length constraints
1 parent 4351104 commit a6f2122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Nova/Actions/ExportTemplateCmsBri.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public function fields(NovaRequest $request)
188188
->default(config('satker.rekening'))
189189
->rules('required'),
190190
Text::make('Remark', 'remark')
191-
->rules('required')
191+
->rules('required', 'regex:/^[a-zA-Z0-9_\-\s]+$/', 'max:50')
192192
->default('Honor '.$this->kegiatan),
193193
Text::make('Nama File', 'filename')
194194
->rules('required', 'regex:/^[a-zA-Z0-9_\-\s]+$/')

0 commit comments

Comments
 (0)