Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

download-a-file-in-laravel-using-a-url-to-external-resource

<?php

Route::get('/', function () {
    return response()->streamDownload(function () {
        echo file_get_contents('https://my.remote.com/file/store-12345.jpg');
    }, 'nice-name.jpg');
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
5+9 =