We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1654102 commit cc29baeCopy full SHA for cc29bae
src/platforms/php/guides/laravel/index.mdx
@@ -23,12 +23,12 @@ composer require sentry/sentry-laravel
23
Enable capturing unhandled exception to report to Sentry by making the following change to your `App/Exceptions/Handler.php`:
24
25
```php {filename:App/Exceptions/Handler.php}
26
+use Sentry\Laravel\Integration;
27
+
28
public function register()
29
{
30
$this->reportable(function (Throwable $e) {
- if (app()->bound('sentry')) {
- app('sentry')->captureException($e);
31
- }
+ Integration::captureUnhandledException($e);
32
});
33
}
34
```
0 commit comments