Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rap2hpoutre committed Sep 5, 2018
1 parent 810d3b9 commit fd80781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Exportable.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function export($path, callable $callback = null)
public function download($path, callable $callback = null)
{
if (method_exists(response(), 'streamDownload')) {
return response()->streamDownload(function () {
return response()->streamDownload(function () use ($path, $callback) {
self::exportOrDownload($path, 'openToBrowser', $callback);
});
}
Expand Down

0 comments on commit fd80781

Please sign in to comment.