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