diff --git a/bootstrap/app.php b/bootstrap/app.php index 58f2d1e..6df382e 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -45,7 +45,7 @@ // }) ->withSchedule(function (Schedule $schedule) { - if (app()->runningInConsole()) { + if (! app()->runningConsoleCommand('schedule:run')) { return; }