Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * laravel < 5.3
- */
- $imgFile = $pathToImg;
- $fileType = File::type($imgFile);
- $response = Response::make( File::get($imgFile), 200);
- $response->header("Content-Type", $fileType);
- return $response;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement