Exemplo n.º 1
0
 public function getThumbnail($filename)
 {
     $entry = Fileentry::where('filename', '=', $filename)->firstOrFail();
     $fs = new FileStorageController();
     $file = $fs->getImage($entry->thumbnail_path);
     return (new Response($file, 200))->header('Content-Type', $entry->mime);
 }