You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -317,6 +318,23 @@ protected function actionsByRow()
317
318
}
318
319
```
319
320
321
+
## Bulk actions
322
+
You can execute bulk actions selecting items on the UI defining a `bulkActions` method with all the actions you want to use. If you define this method, a checkbox input will be displayed for each item to select or unselect it.
323
+
324
+
```php
325
+
protected function bulkActions()
326
+
{
327
+
return [
328
+
new ActivateUsersAction,
329
+
];
330
+
}
331
+
```
332
+
You can creat a bulk action by an artisan command just using the `--bulk` option.
This package has a defined action to redirect the user to a named route related to your model inside your project when the button is clicked, you can use it directly on the `actionsByRow` method
322
340
@@ -395,7 +413,7 @@ public function getConfirmationMessage($item = null)
395
413
```
396
414
397
415
# Showing UI components
398
-
You can display some UI components instead of plain text like avateres, badges or icons, some of these components has different variants, you can customize these varians with the `laravel-views.php` config file.
416
+
You can display some UI components instead of plain text like avatars, badges or icons, some of these components has different variants, you can customize these varians with the `laravel-views.php` config file.
0 commit comments