yajra/laravel-datatables-export
Server-side export plugin for yajra/laravel-datatables using queues, Livewire, and OpenSpout. Adds an export-button component and queued batch jobs to generate spreadsheet exports from DataTable classes on Laravel 13 (PHP 8.3+).
Strengths:
queue:batches-table) to offload heavy export operations, improving UI responsiveness for large datasets.yajra/laravel-datatables, ensuring consistency with existing DataTables implementations (e.g., server-side processing, column formatting).Weaknesses:
yajra/laravel-datatables and yajra/laravel-datatables-buttons (v13.x), which may limit flexibility if the project uses alternative DataTables solutions (e.g., custom server-side processing).yajra/laravel-datatables, yajra/laravel-datatables-buttons, openspout/openspout, laravel/livewire.phpspreadsheet/phpspreadsheet (if not using OpenSpout).storage/app/exports) and purged regularly (via datatables:purge-export). S3/FTP support exists but may need customization.yajra/laravel-datatables and Livewire? If not, what’s the cost of adopting them?composer require yajra/laravel-datatables-export:"^13.0" yajra/laravel-datatables-buttons:"^13.0" openspout/openspout
php artisan queue:batches-table
php artisan migrate
DataTable classes with use WithExportQueue.DataTable classes.<livewire:export-button> to DataTables views.php artisan vendor:publish --tag=datatables-export
php artisan queue:work
sheetName(), exportFormat()).// app/Console/Kernel.php
$schedule->command('datatables:purge-export')->weekly();
storage/app/exports. Custom paths require config overrides.DataTable class (e.g., admin users table).DataTable classes, reducing duplication.datatables-export.php).How can I help you explore Laravel packages today?