Skip to content

Instantly share code, notes, and snippets.

@volkanmetin
Last active May 16, 2017 12:39
Show Gist options
  • Save volkanmetin/87677a5a95a776ccc717a9451dbd2a42 to your computer and use it in GitHub Desktop.
Save volkanmetin/87677a5a95a776ccc717a9451dbd2a42 to your computer and use it in GitHub Desktop.
Rollbar doplicate row fix
protected $dontReport = [
\Illuminate\Auth\AuthenticationException::class,
\Illuminate\Auth\Access\AuthorizationException::class,
\Symfony\Component\HttpKernel\Exception\HttpException::class,
\Illuminate\Database\Eloquent\ModelNotFoundException::class,
\Illuminate\Session\TokenMismatchException::class,
\Illuminate\Validation\ValidationException::class,
\Illuminate\Foundation\Http\Exceptions\MaintenanceModeException::class,
];
/**
* Report or log an exception.
*
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
*
* @param \Exception $exception
* @return void
*/
public function report(Exception $exception)
{
if ($this->shouldReport($exception)) {
\Log::error($exception);
}
parent::report($exception);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment