I'm using Laravel excel package version 2 and want to download an excel file from a given URL . The function Excel::download
was added in version 3. is there any way to still download excel files in version 2? maybe using file_get_contents()
function from PHP itself.
From the Maatwebsite/Excel documentation:
Excel::create('Filename', function($excel) {
})->export('xls');
// or
->download('xls');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.