Since an event is in the background, it won't have a client? No browser to read the headers and download the file.
Apr 8, 2018
3
Level 1
Download File using an event
Hi ! I am trying to download a file using an event...
I am using the following facade
use Illuminate\Support\Facades\Response;
and my method call looks like
Response::download($path)->deleteFileAfterSend(true);
This works normally via the controller but doesn't seem to work via the event.. any help ?
Level 65
Please or to participate in this conversation.