Laravel Backpack - How to export PDF together with its details row

16 views Asked by At

I use $this->crud->enableExportButtons() to export automatically. But it can only export the list, not the details. Is there any other way to export the data together with it's details row?

Expected to be able to export all including the details row in a PDF

1

There are 1 answers

0
Karan Datwani On

Export buttons work only on the data table's retrieved results(1st page only). While each item's details row is another Ajax request. It can't export that's not fetched already.

I recommend creating a custom operation if you want to export a PDF.

  • You can find the instructions here in the docs
  • For bulk operation, visit here

You can try the following packages to generate PDFs with ease and use one of them inside your custom operation: