diff --git a/app/Traits/Sofascore/GrappingSofascore.php b/app/Traits/Sofascore/GrappingSofascore.php index ef678e10..fedbc6b0 100644 --- a/app/Traits/Sofascore/GrappingSofascore.php +++ b/app/Traits/Sofascore/GrappingSofascore.php @@ -137,25 +137,25 @@ trait GrappingSofascore * day 1 */ - // $day = Carbon::now()->subDay()->format('Y-m-d'); + $day = Carbon::now()->subDay()->format('Y-m-d'); - // $this->grap_tournaments_for_day($day); + $this->grap_tournaments_for_day($day); - // foreach ($this->tournaments_requested as $tournament) { - // $this->get_event($day, $tournament); - // } + foreach ($this->tournaments_requested as $tournament) { + $this->get_event($day, $tournament); + } /** * day 5 */ - // $day = Carbon::now()->subDays(5)->format('Y-m-d'); + $day = Carbon::now()->subDays(5)->format('Y-m-d'); - // $this->grap_tournaments_for_day($day); + $this->grap_tournaments_for_day($day); - // foreach ($this->tournaments_requested as $tournament) { - // $this->get_event($day, $tournament); - // } + foreach ($this->tournaments_requested as $tournament) { + $this->get_event($day, $tournament); + } /** * to excel day by day diff --git a/app/Traits/Sofascore/GrappingTournaments.php b/app/Traits/Sofascore/GrappingTournaments.php index bdf28c64..4277e8be 100644 --- a/app/Traits/Sofascore/GrappingTournaments.php +++ b/app/Traits/Sofascore/GrappingTournaments.php @@ -2,6 +2,7 @@ namespace App\Traits\Sofascore; +use App\Models\Country; use App\Models\SofaScoreCategory; use App\Models\SofaScoreDayTournament; use App\Models\SofaScoreTournament;