Closed khalidmaquilang closed 4 months ago
v3
v3.0.4
PHP 8.3
Forms\Components\Select::make('supplier_id') ->relationship('supplier', 'name') ->live() ->required(), TableRepeater::make('purchaseOrderItems') ->headers([ Header::make('Product Name'), Header::make('Quantity'), Header::make('Unit Cost'), ]) ->schema([ Forms\Components\Select::make('product_id') ->options(function (Forms\Get $get) { return Product::where('supplier_id', $get('supplier_id'))->pluck('name', 'id'); }) ->required(), ]) ->columnSpan('full')
When the value of supplier_id changes it should get all Product that is connected to supplier_id but it seems that $get('supplier_id') returns blank.
$get('supplier_id')
I should get the value of supplier_id
supplier_id
create a code similar to this
No response
sorry.. didn't read the whole docs for repeater.. i got the value of the parent by using $get('../../supplier_id')
$get('../../supplier_id')
Filament Version
v3
Plugin Version
v3.0.4
PHP Version
PHP 8.3
Problem description
When the value of supplier_id changes it should get all Product that is connected to supplier_id but it seems that
$get('supplier_id')
returns blank.Expected behavior
I should get the value of
supplier_id
Steps to reproduce
create a code similar to this
Reproduction repository
No response
Relevant log output
No response