Using Laravel Resource Collections with Exports
– www.csrhymes.com - submitted by Chris Rhymes
In this example we are going to create an export of User information into Excel using Laravel Resource Collection and Spatie’s simple excel package. Laravel Resources are normally used to transform your data for use in an API, but you can also create an array from the resource for use in our export.
Read more [www.csrhymes.com]