this snippet will help you to get started with domPDF package for laravel to export your data in pdf format
Incase you want to export HTML content as a PDF file in laravel here is a simple package that you could use: https://github.com/barryvdh/laravel-dompdf