From 84490d446b0a50c5d41bbb28db7184e59f731195 Mon Sep 17 00:00:00 2001 From: salam Date: Mon, 3 Aug 2026 09:50:48 +0200 Subject: [PATCH] wip --- app/Console/Commands/Grapper/Sofascore/MakeExcel.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/Grapper/Sofascore/MakeExcel.php b/app/Console/Commands/Grapper/Sofascore/MakeExcel.php index 24ed6c74..11db3061 100644 --- a/app/Console/Commands/Grapper/Sofascore/MakeExcel.php +++ b/app/Console/Commands/Grapper/Sofascore/MakeExcel.php @@ -6,7 +6,6 @@ use App\Console\Commands\Grapper\Sofascore; use App\Console\Commands\Grapper\Sofascore\Helper\ZipFolder; use App\Console\Commands\Nuh; use App\Utilities\Notice; -use Illuminate\Support\Carbon; use PhpOffice\PhpSpreadsheet\IOFactory; use PhpOffice\PhpSpreadsheet\Spreadsheet; @@ -14,6 +13,8 @@ class MakeExcel { public static $max = 1000; + public static $filesToMail = []; + public static function create() { ini_set("memory_limit", -1); @@ -55,6 +56,8 @@ class MakeExcel $spreadsheet->setActiveSheetIndex(0); $writer = IOFactory::createWriter($spreadsheet, 'Xlsx'); $writer->save(Sofascore::$storage . '/' . $filename); + + self::$filesToMail[] = Sofascore::$storage . '/' . $filename; } }