%PDF- %PDF-
Direktori : /var/www/pjc/app/Http/Controllers/ |
Current File : /var/www/pjc/app/Http/Controllers/scadenziario.php |
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Maatwebsite\Excel\Facades\Excel; use PhpOffice\PhpSpreadsheet\Spreadsheet; use PhpOffice\PhpSpreadsheet\Writer\Xlsx; class scadenziario extends Controller { public function export() { $spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load(storage_path('app/public/SIC-CHECK-XXXXXXx.xls')); //$spreadsheet->getActiveSheet()->setCellValue('A1', 'MASETEK SRLS'); //$cellValue = $spreadsheet->getActiveSheet()->getCell('A1')->getValue(); $writer = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($spreadsheet, "Xls"); $writer->save(storage_path('app/public/05featuredemo.xls')); } }