Laravel-Backpack / download-operation

MIT License
12 stars 5 forks source link

add configurable headers and downloadFile method #5

Closed tabacitu closed 1 year ago

tabacitu commented 1 year ago

WHY

BEFORE - What was wrong? What was happening before this PR?

There was no way to configure the headers without overriding. There was no way to change only the download stream without overriding.

AFTER - What is happening after this PR?

There is.

HOW

How did you achieve that, in technical terms?

Added a new config for download.headers. Added a new method protected function downloadFile($data) that can be easily overriden.

Is it a breaking change or non-breaking change?

Non-breaking.