From ef7aa5fe90a7f772c2c22fb0567615f3f9c15b45 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Sat, 6 Aug 2022 19:02:21 -0400 Subject: [PATCH] category relations --- .../VehicleRelationManager.php | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 app/Filament/Resources/CarShowCategoryResource/RelationManagers/VehicleRelationManager.php diff --git a/app/Filament/Resources/CarShowCategoryResource/RelationManagers/VehicleRelationManager.php b/app/Filament/Resources/CarShowCategoryResource/RelationManagers/VehicleRelationManager.php new file mode 100644 index 0000000..2ec0c9e --- /dev/null +++ b/app/Filament/Resources/CarShowCategoryResource/RelationManagers/VehicleRelationManager.php @@ -0,0 +1,53 @@ +schema([ + Forms\Components\TextInput::make('type') + ->required() + ->maxLength(255), + ]); + } + + public static function table(Table $table): Table + { + return $table + ->columns([ + Tables\Columns\TextColumn::make('type'), + Tables\Columns\TextColumn::make('owner'), + Tables\Columns\TextColumn::make('year'), + Tables\Columns\TextColumn::make('make'), + Tables\Columns\TextColumn::make('model'), + ]) + ->filters([ + // + ]) + ->headerActions([ + Tables\Actions\CreateAction::make(), + ]) + ->actions([ + Tables\Actions\EditAction::make(), + Tables\Actions\DeleteAction::make(), + ]) + ->bulkActions([ + Tables\Actions\DeleteBulkAction::make(), + ]); + } +}