简体   繁体   中英

laravel excel download and parse file from URL

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');

https://laravel-excel.maatwebsite.nl/2.1/export/export.html

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM