Created
March 14, 2014 20:18
-
-
Save JesseObrien/9555922 to your computer and use it in GitHub Desktop.
Add sentry exceptions to Laravel.
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
"require": { | |
"raven/raven": "0.8.*@dev" | |
} |
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
App::error(function(Exception $exception, $code){ | |
$client = new Raven_Client(Config::get('app.sentry_key')); | |
$client->captureException($e); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment