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

@@ -28,16 +28,27 @@ class PilgrimResource extends Resource
protected static ?string $pluralLabel = 'Zyýaratçylar';
/**
* @param Schema $schema
* @return Schema
*/
public static function form(Schema $schema): Schema
{
return PilgrimForm::configure($schema);
}
/**
* @param Table $table
* @return Table
*/
public static function table(Table $table): Table
{
return PilgrimsTable::configure($table);
}
/**
* @return array<string, string>
*/
public static function getRelations(): array
{
return [
@@ -45,6 +56,9 @@ class PilgrimResource extends Resource
];
}
/**
* @return array<string, string>
*/
public static function getPages(): array
{
return [