Repeater Get Value from outside schema

Hi, how to get client_id_repeater, from outside to afterStateHydrated repeater, thanks TextInput::make('client_id_repeater')->live(), Repeater::make('responses') ->schema([ ])->deletable(false)->addable(false)->reorderable(false) ->columns(1) ->defaultItems(0) ->afterStateHydrated(function (Repeater $component, $state, ?Model $record, Get $get) { if (!empty($state)) { return; } $clientId = $get('client_id_repeater'); } })
1 Reply
awcodes
awcodes3mo ago
$get uses directory style traversal. So you can use things like $get(‘../outside_repeater_field’)
Want results from more Discord servers?
Add your server