Bulk Action Get Form Fields
Sorry to interrupt you guys but i have a problems and cant find solution on doc.
->bulkActions([
Tables\Actions\BulkAction::make('Assegna Tag')
->form([
Select::make('tags')
->label('Tag da assegnare')
->multiple()
->options(Tag::query()->pluck('name', 'id'))
->required(),
])
->action(
//Generate models for each Partners and assign it to the selected tag
function (Collection $records){
dd($records);
/*
$records->each(
function (Partner $records) use ($tags) {
$records->tags()->attach($tags);
$records->save();
}
);
*/
}
),
Tables\Actions\DeleteBulkAction::make(),
Tables\Actions\RestoreBulkAction::make(),
]);
how i can read form data on Bulk Actions ?
Documentation explain how to retrieve form data on Single Action but i cant successful use that solution on bulk0 Replies