title: BinaryFileResponse in Laravel undefined
body: <p>I have got the following problem:
  I want to return an Image on the route /getImage/{id}
  The function looks like this:</p>
  
  <pre><code>public function getImage($id){
     $image = Image::find($id);
     return response()-&gt;download('/srv/www/example.com/api/public/images/'.$image-&gt;filename);
  }
  </code></pre>
  
  <p>When I do this it returns me this:</p>
  
  <pre><code>FatalErrorException in HandleCors.php line 18:
  Call to undefined method Symfony\Component\HttpFoundation\BinaryFileResponse::header()
  </code></pre>
  
  <p>I have got <code>use Response;</code> at the beginning of the controller.
  I dont think that the HandleCors.php is the problem but anyway:</p>
  
  <pre><code>&lt;?php namespace App\Http\Middleware;
  use Closure;
  
  use Illuminate\Contracts\Routing\Middleware;
  use Illuminate\Http\Response;
  
  class CORS implements Middleware {
  
  public function handle($request, Closure $next)
  {
        return $next($request)-&gt;header('Access-Control-Allow-Origin' , '*')
              -&gt;header('Access-Control-Allow-Methods', 'POST, GET, OPTIONS, PUT, DELETE')
              -&gt;header('Access-Control-Allow-Headers', 'Content-Type, Accept, Authorization, X-Requested-With, Application');
       }
  }
  </code></pre>
  
  <p>I actually dont know why this happens since it is exactly like it is described in the Laravel Docs.
  I have updated Laravel when I got the error but this did not fix it.</p>