Skip to content

Commit

Permalink
fix for missing template file
Browse files Browse the repository at this point in the history
  • Loading branch information
roelgonzalez committed Aug 16, 2020
1 parent 5dfa9f2 commit 1486cbc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/TemplateDownloadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace App\Http\Controllers;

use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Facades\Response;

class TemplateDownloadController extends Controller
{
public function flightTemplate()
{
return Storage::disk('central-local')->download('flights-template.csv');
return Response::download(resource_path('flights-template.csv'));
}
}
File renamed without changes.
1 change: 0 additions & 1 deletion storage/app/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
*
!public/
!.gitignore
!flights-template.csv

0 comments on commit 1486cbc

Please sign in to comment.