Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function store() {
- $file_path = storage_path('app/avatars/cAsNIm6JK60grOt3ZoMhWL1ipLTsvstja4VrFtzg.zip');
- $headers = array(
- 'filename' => 'demo.zip',
- );
- $newName = "demo.zip";
- return response()->download($file_path, $newName, $headers);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement