Checkboxlist's checkbox checked or not

CustomCheckboxList::make('task_lists') ->relationship('task_lists', 'title', modifyQueryUsing: function (Builder $query, string $operation) use ($stage) { $query->where('stage_id', $stage->id)->orderBy('id', 'asc'); }) ->afterStateHydrated(function ($state, $component, ?EmployeeOffboarding $record) use ($stage) { if (!$record) return; $component->state($record->task_lists->pluck('id')->toArray()); })->afterStateUpdated(function($component){ }), how i can get the particular checkbox's(in which one i have recently performed action) status that checked or not CustomCheckboxList extends from CheckBoxList
3 Replies
toeknee
toeknee6mo ago
in your afterStateUpdated?
->afterStateUpdated(function($state){
dd($state);
})
->afterStateUpdated(function($state){
dd($state);
})
Abinash
AbinashOP6mo ago
it return all checked checkbox value as a array
toeknee
toeknee6mo ago
But it shows if they are true or false right?
Want results from more Discord servers?
Add your server