Skip to content
Icon

WARNING You're browsing the documentation for an old version of LARAVEL-DATATABLES. Consider upgrading your project to laravel-datatables 11.0.

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