From cdaa038ce3a54023cab8f49eceae67d388b6e9f4 Mon Sep 17 00:00:00 2001 From: Antoine Augusti Date: Sat, 2 May 2020 07:49:12 -0400 Subject: [PATCH] Import class --- app/Console/Kernel.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 4e4421f..07b3eb2 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -3,6 +3,7 @@ namespace App\Console; use App\Mail\WeeklyReport; +use App\Report; use App\Slack; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Foundation\Console\Kernel as ConsoleKernel; @@ -30,7 +31,7 @@ protected function schedule(Schedule $schedule) { $isLatestWorkingDay = function () { $today = now(config('app.report_timezone')); - $lastWorkingDay = App\Report::lastWorkingDayOfWeek(); + $lastWorkingDay = Report::lastWorkingDayOfWeek(); return $today->isSameDay($lastWorkingDay); };