ranjith-dev #628
@@ -221,6 +221,12 @@ class ProductCharacteristicsMasterResource extends Resource
|
|||||||
->afterStateUpdated(function ($state, callable $set) {
|
->afterStateUpdated(function ($state, callable $set) {
|
||||||
$set('updated_by', Filament::auth()->user()?->name);
|
$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')
|
Forms\Components\Select::make('inspection_type')
|
||||||
->label('Inspection Type')
|
->label('Inspection Type')
|
||||||
->searchable()
|
->searchable()
|
||||||
@@ -351,6 +357,11 @@ class ProductCharacteristicsMasterResource extends Resource
|
|||||||
->alignCenter()
|
->alignCenter()
|
||||||
->searchable()
|
->searchable()
|
||||||
->sortable(),
|
->sortable(),
|
||||||
|
Tables\Columns\TextColumn::make('category')
|
||||||
|
->label('Category')
|
||||||
|
->alignCenter()
|
||||||
|
->searchable()
|
||||||
|
->sortable(),
|
||||||
Tables\Columns\TextColumn::make('line.name')
|
Tables\Columns\TextColumn::make('line.name')
|
||||||
->label('Line Name')
|
->label('Line Name')
|
||||||
->alignCenter()
|
->alignCenter()
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ class ProductCharacteristicsMaster extends Model
|
|||||||
'machine_id',
|
'machine_id',
|
||||||
'characteristics_type',
|
'characteristics_type',
|
||||||
'name',
|
'name',
|
||||||
|
'category',
|
||||||
'inspection_type',
|
'inspection_type',
|
||||||
'lower',
|
'lower',
|
||||||
'upper',
|
'upper',
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
// //
|
||||||
|
// });
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user