Action form how send data ?
Hello this is my problem, i try to send the select data to the action but in the dd() show like id of array not the id of the article selected some ideas ?
Tables\Actions\Action::make('pdf_2')
->form([
Forms\Components\Section::make()
->schema([
Forms\Components\Select::make('kits')
->options(
function ($record) {
return InvoiceItem::where('order_id', $record->id)->pluck('article_id'); }
),
]),
])
->action(function (Order $record, array $data) {
$kit = $data['kits'];
dd($kit);
}),
