Skip to content

Commit

Permalink
Merge pull request #31 from understand/laravel-58-exception-attribute
Browse files Browse the repository at this point in the history
Enable Laravel 5.8 exception attribute support
  • Loading branch information
aivis committed May 2, 2019
2 parents 5df621e + ea1592d commit 3eb3e50
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -303,7 +303,8 @@ protected function handleEvent($level, $message, $context)
$this->app['understand.eventLogger']->logEvent($level, $message, $context);
}
// `\Log::notice`, `\Log::warning`, `\Log::error`, `\Log::critical`, `\Log::alert`, `\Log::emergency` and `\Exception`, `\Throwable`
else if ($this->detectLaravelVersion(['5.5', '5.6', '5.7']) && isset($context['exception']) && ($context['exception'] instanceof Exception || $context['exception'] instanceof Throwable))
// '5.5', '5.6', '5.7', '5.8'
else if ( ! $this->detectLaravelVersion(['5.0', '5.1', '5.2', '5.3', '5.4']) && isset($context['exception']) && ($context['exception'] instanceof Exception || $context['exception'] instanceof Throwable))
{
$exception = $context['exception'];
unset($context['exception']);
Expand Down

0 comments on commit 3eb3e50

Please sign in to comment.