From 003e686224bd18d1aa190f7e786a912bccf7e4c2 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Sat, 6 Aug 2022 15:46:22 -0400 Subject: [PATCH] Update carshowcategory filament resource --- .../Resources/CarShowCategoryResource.php | 12 ++++++++++-- .../Pages/CreateCarShowCategory.php | 12 ++++++++++++ .../Pages/EditCarShowCategory.php | 19 +++++++++++++++++++ ...tegories.php => ListCarShowCategories.php} | 4 ++-- 4 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 app/Filament/Resources/CarShowCategoryResource/Pages/CreateCarShowCategory.php create mode 100644 app/Filament/Resources/CarShowCategoryResource/Pages/EditCarShowCategory.php rename app/Filament/Resources/CarShowCategoryResource/Pages/{ManageCarShowCategories.php => ListCarShowCategories.php} (78%) diff --git a/app/Filament/Resources/CarShowCategoryResource.php b/app/Filament/Resources/CarShowCategoryResource.php index 6efe41b..6f8cd8e 100644 --- a/app/Filament/Resources/CarShowCategoryResource.php +++ b/app/Filament/Resources/CarShowCategoryResource.php @@ -38,17 +38,25 @@ class CarShowCategoryResource extends Resource ]) ->actions([ Tables\Actions\EditAction::make(), - Tables\Actions\DeleteAction::make(), ]) ->bulkActions([ Tables\Actions\DeleteBulkAction::make(), ]); } + public static function getRelations(): array + { + return [ + // + ]; + } + public static function getPages(): array { return [ - 'index' => Pages\ManageCarShowCategories::route('/'), + 'index' => Pages\ListCarShowCategories::route('/'), + 'create' => Pages\CreateCarShowCategory::route('/create'), + 'edit' => Pages\EditCarShowCategory::route('/{record}/edit'), ]; } } diff --git a/app/Filament/Resources/CarShowCategoryResource/Pages/CreateCarShowCategory.php b/app/Filament/Resources/CarShowCategoryResource/Pages/CreateCarShowCategory.php new file mode 100644 index 0000000..36bc851 --- /dev/null +++ b/app/Filament/Resources/CarShowCategoryResource/Pages/CreateCarShowCategory.php @@ -0,0 +1,12 @@ +