public function download($path, $name = null, array $headers = [])
    {
        return $this->response($path, $name, $headers, 'attachment');
    }
public function download($path, $name = null, array $headers = [])
    {
        return $this->response($path, $name, $headers, 'attachment');
    }
public function download ( $ path , $ name = null , array $ headers = [ ] ) { return $ this -> response ( $ path , $ name , $ headers , 'attachment' ) ; }
Create a streamed download response for a given file.

@param  string  $path
@param  string|null  $name
@param  array|null  $headers
@return \Symfony\Component\HttpFoundation\StreamedResponse
Create a streamed download response for a given file .