I was trying to export ~20k datasets from the database using queue in maatwebsite. Below code base is perfectly working in localhost.
But when I uploaded it to my digital ocean server it was giving me
Serialization of 'Closure' is not allowed
Internal Server Error.
I'm using Maatwebsite Excel for exporting to excel files.
Export File Codebase: https://i.ibb.co/yPW3Gr9/screely-1649409743160.png
Controller File Codebase: https://i.ibb.co/F4cKF7m/screely-1649409670775.png
Please guide !!!