Devise\Support\DeviseResponse::download PHP Method

download() public method

Create a new file download response.
public download ( SplFileInfo | string $file, string $name = null, array $headers = [], null | string $disposition = 'attachment' ) : BinaryFileResponse
$file SplFileInfo | string
$name string
$headers array
$disposition null | string
return Symfony\Component\HttpFoundation\BinaryFileResponse
    public function download($file, $name = null, array $headers = array(), $disposition = 'attachment')
    {
        return \Response::download($file, $name, $headers, $disposition);
    }