FormatController – Return results with JSON, CSV, HTML

News

January 27th, 2014

Dan Harper created:

A Laravel Controller which allows you to display report data in multiple formats. For example, you may display a preview as HTML, and offer buttons to download as CSV and JSON.

Filed in:

Eric L. Barnes

Eric is the creator of Laravel News and has been covering Laravel since 2012.