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; } }