Introduction
Actions are interactive buttons that can be added to tables in various positions:- Record actions - Buttons at the end of each table row
- Bulk actions - Operations on selected rows
- Header actions - Buttons in the table header
- Toolbar actions - Buttons in the table toolbar
- Column actions - Clickable cells that trigger actions
Record actions
Add action buttons to the end of each table row:Accessing the record
All action callbacks receive the current$record:
Positioning record actions
Move actions before columns:Action modals
Actions can open modals for confirmation or to collect additional data:Actions with forms
Collect data before executing the action:Pre-filling form data
Bulk actions
Execute operations on multiple selected records:Accessing selected records
The$records parameter is an Eloquent collection:
Authorizing bulk actions
Check policy methods for each selected record:$records.