Skip to content
Icon

WARNING You're browsing the documentation for an upcoming version of Laravel DataTables. The documentation and features of this release are subject to change.

Export Usage

Usage

  1. Add the export-button livewire component on your view file that uses dataTable class.
<livewire:export-button :table-id="$dataTable->getTableId()" />
  1. On your DataTable class, use WithExportQueue
use Yajra\DataTables\WithExportQueue;
 
class PermissionsDataTable extends DataTable
{
use WithExportQueue;
 
...
}
  1. Run your queue worker. Ex: php artisan queue:work