From 8fbdcc2a2f58c77b9dee27e68cd97981086f7bd3 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Sun, 7 Aug 2022 08:47:36 -0400 Subject: [PATCH] category relation --- app/Filament/Resources/CarShowCategoryResource.php | 2 -- .../RelationManagers/VehicleRelationManager.php | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Filament/Resources/CarShowCategoryResource.php b/app/Filament/Resources/CarShowCategoryResource.php index c934592..ac77eda 100644 --- a/app/Filament/Resources/CarShowCategoryResource.php +++ b/app/Filament/Resources/CarShowCategoryResource.php @@ -24,8 +24,6 @@ class CarShowCategoryResource extends Resource protected static ?string $navigationIcon = 'heroicon-o-collection'; - protected static ?string $inverseRelationship = 'type'; - public static function form(Form $form): Form { return $form diff --git a/app/Filament/Resources/CarShowCategoryResource/RelationManagers/VehicleRelationManager.php b/app/Filament/Resources/CarShowCategoryResource/RelationManagers/VehicleRelationManager.php index 72cf50c..d69279d 100644 --- a/app/Filament/Resources/CarShowCategoryResource/RelationManagers/VehicleRelationManager.php +++ b/app/Filament/Resources/CarShowCategoryResource/RelationManagers/VehicleRelationManager.php @@ -16,6 +16,8 @@ class VehicleRelationManager extends RelationManager protected static ?string $recordTitleAttribute = 'id'; + protected static ?string $inverseRelationship = 'type'; + public static function form(Form $form): Form { return $form