refactored to use custom laravel controller, better file storage and uses eloquent instead of customer sql