Question: How do I get files located in Storage?

I build a route and directed it to `myCcontroller@myMethod`. Method is below

```
public function myMethod()
{
    $validPath = 'valid-path-inside-local-storage';
    $file = Storage::disk(env('STORAGE_TO_USE','local'))->get($validPath);
    return $file;
}

```

But I get gibberish, probably raw data. How do I get the browser to display image if file is image or download it if file is, say, `a.xls`?

Answer: 
```
    $validPath = 'valid-path-inside-local-storage';
    $mimeType = Storage::mimeType($validPath);
    $file = Storage::disk(env('STORAGE_TO_USE','local'))->get($validPath);
    return (new Response($file, 200))
        ->header('Content-Type', $mimeType);

```

I hope I didn't miss anything.
You can use method `response` on the `Storage` facade.

```php
public function myMethod()
{
    $validPath = 'valid-path-inside-local-storage';
    return Storage::disk(env('STORAGE_TO_USE','local'))->response($validPath);
}

```

This method return **optimal response** with file **stream content** and **all needed headers**: MIME type (Content-Type), filename (Content-Disposition) and file size (Content-Length).