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)
4 Replies
you can use bulk actions
@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.
}
Solution
you can use
headerAction
with ->url(route(...))
to your routethanks @Lara Zeus. HeaderActions worked