Refactor GroupForm to use unique validation method for start_date; enhance PilgrimResource and PilgrimForm with method documentation; update web routes to redirect from root to panel.

This commit is contained in:
2025-09-20 12:55:18 +05:00
parent e706e22266
commit b6537c5314
10 changed files with 202 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ class GroupForm
->required()
->live()
->afterStateUpdated(fn (Set $set, ?string $state) => $set('end_date', $state ? Carbon::parse($state)->addDays(14)->format('Y-m-d') : null))
->rules('unique:groups,start_date'),
->unique(ignoreRecord: true),
DatePicker::make('end_date')
->label('Gutarýan senesi')