Last active
May 16, 2017 12:39
-
-
Save volkanmetin/87677a5a95a776ccc717a9451dbd2a42 to your computer and use it in GitHub Desktop.
Rollbar doplicate row fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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