Skip to content
This repository was archived by the owner on Nov 10, 2022. It is now read-only.

Commit ede6e7a

Browse files
committed
Changed local route to use new storage render method
1 parent 9f766fc commit ede6e7a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/routes.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,11 @@
44
// Register storage route.
55
\Route::get($route_path.'{path}', function ($path) {
66
try {
7-
$file = Storage::get($path);
7+
$response = Storage::render($path);
88
} catch (\Exception $e) {
99
\App::abort(404, 'File not found');
1010
}
1111

12-
$mime = Storage::mime($path);
13-
14-
$response = \Response::make($file, 200, array(
15-
'Content-Type' => $mime,
16-
));
17-
1812
return $response;
1913
});
2014
}

0 commit comments

Comments
 (0)