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