Páginas · Laravilt
DeleteBulkAction
Delete all selected records after confirmation.
php
Defaults: icon Trash2, color destructive, confirmation required, clears the selection afterwards, and shows the deleted count in a notification. Records are soft-deleted when the model uses SoftDeletes.
The table passes its model to the action automatically. Set it yourself when the table has no model:
php
Customizing
php
API reference
| Method | Description |
|---|---|
model(string) | Model class |
resource(string) | Resource class (for permission checks) |
deselectRecordsAfterCompletion(bool) | Clear the selection (default true) |
modalHeading(), modalDescription(), modalSubmitActionLabel() | Confirmation text |