Hi @saadaan
Could you show us the Controller method that corresponds to the viewalldata url?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
I am trying to use Yajra plugin for using datatables on Laravel. Everything else is working fine, however the HTML5 EXPORT is only downloading the first set of table results which is displayed on the page only (first 10 in the example below). It is not downloading the whole table. Here is my code:
<script type="text/javascript">
//Data Tables
$(document).ready(function () {
$('#example').DataTable({
processing: true,
serverSide: true,
iDisplayLength: 10,
aaSorting: [['0', 'desc']],
dom: 'Bfrtip',
buttons: [
{ extend: 'excelHtml5', text: 'Download' }
],
ajax:{
url: "viewalldata",
},
columns:[
{
data: 'student_id',
name: 'student_id'
}
],
});
});
</script>
If anyone can help, I would be much obliged.
Thanks, Saad
Please or to participate in this conversation.