From f8dc95054bf955177e80ca3d03b457ae6b6f86a4 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Thu, 21 May 2026 14:55:03 +0530 Subject: [PATCH 1/3] Added category column in product characteristics master migration file --- ...ory_to_product_characteristics_masters.php | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 database/migrations/2026_04_21_154805_add_category_to_product_characteristics_masters.php diff --git a/database/migrations/2026_04_21_154805_add_category_to_product_characteristics_masters.php b/database/migrations/2026_04_21_154805_add_category_to_product_characteristics_masters.php new file mode 100644 index 0000000..6e0493a --- /dev/null +++ b/database/migrations/2026_04_21_154805_add_category_to_product_characteristics_masters.php @@ -0,0 +1,31 @@ + Date: Thu, 21 May 2026 14:55:53 +0530 Subject: [PATCH 2/3] Added category in product characteristics master model file --- app/Models/ProductCharacteristicsMaster.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Models/ProductCharacteristicsMaster.php b/app/Models/ProductCharacteristicsMaster.php index 931c04c..124040b 100644 --- a/app/Models/ProductCharacteristicsMaster.php +++ b/app/Models/ProductCharacteristicsMaster.php @@ -18,6 +18,7 @@ class ProductCharacteristicsMaster extends Model 'machine_id', 'characteristics_type', 'name', + 'category', 'inspection_type', 'lower', 'upper', From f4bfc5c4dc92349605b618028926a87aaf071ef4 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Thu, 21 May 2026 14:59:41 +0530 Subject: [PATCH 3/3] Added category in product characteristics master resource page --- .../ProductCharacteristicsMasterResource.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/Filament/Resources/ProductCharacteristicsMasterResource.php b/app/Filament/Resources/ProductCharacteristicsMasterResource.php index 947fc67..7bb818d 100644 --- a/app/Filament/Resources/ProductCharacteristicsMasterResource.php +++ b/app/Filament/Resources/ProductCharacteristicsMasterResource.php @@ -221,6 +221,12 @@ class ProductCharacteristicsMasterResource extends Resource ->afterStateUpdated(function ($state, callable $set) { $set('updated_by', Filament::auth()->user()?->name); }), + Forms\Components\TextInput::make('category') + ->label('Category') + ->reactive() + ->afterStateUpdated(function ($state, callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\Select::make('inspection_type') ->label('Inspection Type') ->searchable() @@ -351,6 +357,11 @@ class ProductCharacteristicsMasterResource extends Resource ->alignCenter() ->searchable() ->sortable(), + Tables\Columns\TextColumn::make('category') + ->label('Category') + ->alignCenter() + ->searchable() + ->sortable(), Tables\Columns\TextColumn::make('line.name') ->label('Line Name') ->alignCenter()