Povilas Korop shows us how to use Laravel-Excel package to export data.

Laravel excel

Demo

larave