export yajra datatable all data to csv <p>I'm not able to find any solution for saving all the records to CSV using yajra datatables.</p> <p>Currently i'm getting paginated records that are displaying on current screen (10 records), what i need is all the records</p> <p>I'm using yajra datatables buttons extension.</p> <p>My current code is :</p> <pre><code> $('#export-table').DataTable({ dom: 'Bfrtip', processing: true, serverSide: true, responsive: true, autoWidth:false, aaSorting: [[6, 'desc']], ajax: '{!! route('export.data') !!}', aoColumns: [ {mData:'name', name: 'name'}, {mData:'address', name: 'address'}, {mData:'phone', name: 'phone'}, {mData:'cell_phone', name: 'cell_phone'}, {mData:'email', name: 'm.email'}, {mData:'company', name: 'company'}, {mData:'date_taken', name: 'date_taken'} ], buttons: ['csv'] }); </code></pre> <p>Need help to save all records to csv</p> <p><strong>UPDATE</strong></p> <p>I'm using yajra datatables plugin with laravel 5.0</p>