File tree Expand file tree Collapse file tree 6 files changed +9
-9
lines changed
Filament/Company/Resources Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ public static function table(Table $table): Table
110110 ->columns ([
111111 Tables \Columns \TextColumn::make ('category.category_name ' )->searchable ()->sortable ()->toggleable (),
112112 Tables \Columns \TextColumn::make ('item_sku ' )->searchable ()->sortable ()->toggleable (),
113- Tables \Columns \TextColumn::make ('product_name ' )->searchable ()->sortable ()->toggleable (),
113+ Tables \Columns \TextColumn::make ('item_name ' )->searchable ()->sortable ()->toggleable (),
114114 Tables \Columns \TextColumn::make ('item_type ' )->formatStateUsing (fn ($ state ) => ItemType::tryFrom ($ state )?->label())->searchable ()->sortable ()->toggleable (),
115115 Tables \Columns \TextColumn::make ('item_price ' )->searchable ()->sortable ()->toggleable (),
116116 Tables \Columns \TextColumn::make ('taxRate.tax_rate_name ' )->searchable ()->sortable ()->toggleable (),
@@ -126,7 +126,7 @@ public static function table(Table $table): Table
126126 Tables \Actions \DeleteBulkAction::make (),
127127 ]),
128128 ])
129- ->defaultSort ('product_name ' , 'asc ' );
129+ ->defaultSort ('item_name ' , 'asc ' );
130130 }
131131
132132 /**
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public function rules(): array
4545 $ this ->isMethod ('post ' ) ? 'required ' : 'sometimes ' ,
4646 'string ' ,
4747 ],
48- 'product_name ' => [
48+ 'item_name ' => [
4949 $ this ->isMethod ('post ' ) ? 'required ' : 'sometimes ' ,
5050 'string ' ,
5151 ],
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public function rules(): array
3636 $ this ->isMethod ('post ' ) ? 'required ' : 'sometimes ' ,
3737 'string ' ,
3838 ],
39- 'product_name ' => [
39+ 'item_name ' => [
4040 $ this ->isMethod ('post ' ) ? 'required ' : 'sometimes ' ,
4141 'string ' ,
4242 ],
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class Product extends Model
2222 'product_unit.name ' ,
2323 'tax_rate.tax_rate_name ' ,
2424 'product_sku ' ,
25- 'product_name ' ,
25+ 'item_name ' ,
2626 'product_price ' ,
2727 ];
2828
@@ -31,15 +31,15 @@ class Product extends Model
3131 'product_unit.unit_name ' ,
3232 'tax_rate.tax_rate_name ' ,
3333 'product_sku ' ,
34- 'product_name ' ,
34+ 'item_name ' ,
3535 'product_price ' ,
3636 ];
3737
3838 protected $ primaryKey = 'product_id ' ;
3939
4040 protected $ fillable = [
4141 'product_sku ' ,
42- 'product_name ' ,
42+ 'item_name ' ,
4343 'product_description ' ,
4444 'product_price ' ,
4545 'purchase_price ' ,
Original file line number Diff line number Diff line change 261261 'label ' => 'Product sku ' ,
262262 'placeholder ' => 'Product sku ' ,
263263 ],
264- 'product_name ' => [
264+ 'item_name ' => [
265265 'label ' => 'Product name ' ,
266266 'placeholder ' => 'Product name ' ,
267267 ],
Original file line number Diff line number Diff line change 411411 'product ' => 'Product ' ,
412412 'product_description ' => 'Product description ' ,
413413 'product_families ' => 'Product Families ' ,
414- 'product_name ' => 'Product name ' ,
414+ 'item_name ' => 'Product name ' ,
415415 'product_price ' => 'Price ' ,
416416 'product_sku ' => 'SKU ' ,
417417 'product_tariff ' => 'Tariff ' ,
You can’t perform that action at this time.
0 commit comments