diff --git a/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php b/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php index 7131ffd7ab9b..ced85fea5058 100644 --- a/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php +++ b/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php @@ -86,6 +86,10 @@ public function handleError($level, $message, $file = '', $line = 0, $context = */ public function handleDeprecation($message, $file, $line) { + if (! class_exists(LogManager::class)) { + return; + } + try { $logger = $this->app->make(LogManager::class); } catch (Exception $e) {