当一个用户请求开始下载,同时向他发送一条flash消息时,你该怎么做?
A. Flash message (example):.
return redirect()->route('success')->with('success', 'hello');
.
B. Start download (example):.
return \Illuminate\Support\Facades\Storage::download($path);
.
C. Example which does not work. But it should be a mix of both examples from above:
return \Illuminate\Support\Facades\Storage::download($path)->with('success', 'hello');