Change de delete process in Tables\Actions\DeleteBulkAction Hooks
It's possible get records before DeleteBulkAction hook?
->bulkActions([
Tables\Actions\DeleteBulkAction::make()
->before(function (MyModel $record) {
dd($record);
}),
]);
In edit record page this work:
protected function getActions(): array
{
return [
Actions\DeleteAction::make()
->before(function (MyModel $record) {
dd($record);
}),
];
}
2 Replies
Filament
Actions - Table Builder - Filament
The elegant TALL stack table builder for Laravel artisans.
π this work... thank you very much.