%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/pjc/app/Http/Controllers/
Upload File :
Create Path :
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'));

     
    }
}

Zerion Mini Shell 1.0