Skip to content

Conversation

@karandatwani92
Copy link
Contributor

WHY

BEFORE - What was wrong? What was happening before this PR?

Quick button is very quick and useful to setup single action buttons.

AFTER - What is happening after this PR?

Now, it also lets you setup bulk action buttons. It helps me setup bulk operation smoothly without getting me into messy view file.😎

HOW

+ CRUD::enableBulkActions();
CRUD::button('send_invoices')->stack('bottom')->view('crud::buttons.quick')->meta([
    'label' => 'Send Invoices (Bulk)',
    'icon' => 'la la-envelope',
    'access' => true,
    'wrapper' => [
        'href' => function ($entry, $crud) {
            return url($crud->route) . "/bulk-send-invoice";
        },
    ],
    'ajax' => [
        'method' => 'POST',
        'success_title' => 'Send Invoices Job Queued',
        'success_message' => 'Send invoices operation has been queued and will be processed in the background. Check logs for progress updates.',
        'error_title' => 'Queue Operation Failed',
        'error_message' => 'Failed to queue send invoices operation.',
    ],
    //'bulk' => true,
+    'bulk' => [
+        'no_entries_title' => 'No Invoices Selected',
+        'no_entries_message' => 'Please select at least one invoice to send.',
+        'confirm_title' => 'Confirm Send Invoices Operation',
+        'confirm_message' => 'Are you sure you want to queue send invoices operation for :number selected invoices? This will be processed in the background and may take some time to complete.',
+    ],
]);

How did you achieve that, in technical terms?

  • Basic config keys
  • A Modal
  • Existing Ajax setup

Is it a breaking change?

No

@karandatwani92 karandatwani92 moved this to In Review in Backpack v7.0 Nov 13, 2025
@karandatwani92 karandatwani92 moved this to Needs Testing, Review or Docs in This week Nov 13, 2025
@karandatwani92 karandatwani92 changed the base branch from main to next November 13, 2025 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: In Review
Status: Needs Testing, Review or Docs

Development

Successfully merging this pull request may close these issues.

3 participants