add custom action on top of table

I want to add export action at the top of the table. ( on the row where searchbar lies)
No description
Solution:
you can use headerAction with ->url(route(...)) to your route
Jump to solution
4 Replies
Lara Zeus
Lara Zeus8mo ago
you can use bulk actions
No description
Aditya Khadka | Nepal
@Lara Zeus Without using bulkaction i want this export response action ontop of table. I have created a custom route and export controller for it. Route::get('/admin/export-customer/pdf', [ExportController::class, 'exportOrderPdf'])->name('admin.export.pdf'); class ExportController extends Controller { public function exportOrderPdf() { $users = Customer::all(); //other code. }
No description
Solution
Lara Zeus
Lara Zeus8mo ago
you can use headerAction with ->url(route(...)) to your route
Aditya Khadka | Nepal
thanks @Lara Zeus. HeaderActions worked
No description
Want results from more Discord servers?
Add your server