Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/Illuminate/Support/Facades/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,13 @@ public static function stream($callback, $status = 200, array $headers = array()
* @param string $name
* @param array $headers
* @param null|string $disposition
* @param boolean $autoEtag
* @param boolean $autoLastModified
* @return \Symfony\Component\HttpFoundation\BinaryFileResponse
*/
public static function download($file, $name = null, array $headers = array(), $disposition = 'attachment')
public static function download($file, $name = null, array $headers = array(), $disposition = 'attachment', $autoEtag = false, $autoLastModified = true)
{
$response = new BinaryFileResponse($file, 200, $headers, true, $disposition);
$response = new BinaryFileResponse($file, 200, $headers, true, $disposition, $autoEtag, $autoLastModified);

if ( ! is_null($name))
{
Expand Down