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:
@@ -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 [
|
||||
|
||||
Reference in New Issue
Block a user