Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 438 Bytes

exports-usage.md

File metadata and controls

24 lines (16 loc) · 438 Bytes

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