I want to export the data from the Datatables to excel or CSV files.
I have been searching for more than 3 hours but I can't find the solution that fits my code.
Below is my blade file code
Now I am pasting my controller file function
I just want two buttons so that when I click on one of the button it will do work as suggested. I think there might be some syntax or boilerplate in yajra tables.
Please help me to solve such problem!
Thank you in advance
Firstly, I'll advice you use the normal html/jquery datatable cdn, to populate your data. In that way, u easily handle the export button. Starting with php artisan make:export... I implemented sometime ago, I will take you through the implementation, if you apply the architecture above
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community