Merge pull request 'ranjith-dev' (#628) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

Reviewed-on: #628
This commit was merged in pull request #628.
This commit is contained in:
2026-05-21 09:30:59 +00:00
3 changed files with 43 additions and 0 deletions

View File

@@ -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()

View File

@@ -18,6 +18,7 @@ class ProductCharacteristicsMaster extends Model
'machine_id',
'characteristics_type',
'name',
'category',
'inspection_type',
'lower',
'upper',

View File

@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
$sql1 = <<<'SQL'
ALTER TABLE product_characteristics_masters
ADD COLUMN category TEXT DEFAULT NULL
SQL;
DB::statement($sql1);
}
/**
* Reverse the migrations.
*/
public function down(): void
{
// Schema::table('product_characteristics_masters', function (Blueprint $table) {
// //
// });
}
};