Disable select option if selected in another repeater item

Assume i have a repeater with Select options, how can i disable the option if its selected in another repeater's select? Repeater::make('stocks') ->label('Merchant Stocks') ->schema([ Select::make('merchant_store_id') ->label('Merchant') ->reactive() ->options(function (Closure $get) { return \App\Models\Merchant::all()->pluck('name', 'id'); }) ->required(), TextInput::make('stock_count') ->label('Stock Count') ->required(), ]) ->disableItemMovement() how do i ensure the above Select only a Merchant is selected once in repeater.
2 Replies
eieiem
eieiem14mo ago
Hi @elsonium were you able to find a solution to this situation? Thanks.
Want results from more Discord servers?
Add your server