How to create a text file for JSON and file download in Laravel 5