Páginas · Laravilt
Custom BulkAction
Create custom actions for multiple selected records
Create custom actions that operate on multiple selected records.
Basic Usage
php
With Confirmation
php
With Form
php
Auto Deselect
php
API Reference
| Method | Parameters | Description |
|---|---|---|
make() | string $name | Create action |
label() | string | Set label |
icon() | string | Set icon |
color() | string | Set color |
action() | Closure | Callback with records array |
form() | array | Modal form schema |
requiresConfirmation() | — | Show confirmation |
modalHeading() | string | Modal title |
modalDescription() | string | Modal message |
deselectRecordsAfterCompletion() | bool | Auto-deselect records |