diff --git a/src/platforms/php/guides/laravel/index.mdx b/src/platforms/php/guides/laravel/index.mdx index 467d7f58cbe99..079c8d496137e 100644 --- a/src/platforms/php/guides/laravel/index.mdx +++ b/src/platforms/php/guides/laravel/index.mdx @@ -10,7 +10,7 @@ description: "Learn about using Sentry with Laravel." Laravel is supported using a native package: [sentry-laravel](https://github.com/getsentry/sentry-laravel). -This guide is for Laravel 8+. We also provide instructions for [other versions](/platforms/php/guides/laravel/other-versions/) as well as [Lumen-specific instructions](/platforms/php/guides/laravel/other-versions/lumen/). +This guide is for Laravel 8.x, 9.x and 10.x. We also provide instructions for [other versions](/platforms/php/guides/laravel/other-versions/) as well as [Lumen-specific instructions](/platforms/php/guides/laravel/other-versions/lumen/). ## Install @@ -25,7 +25,7 @@ Enable capturing unhandled exception to report to Sentry by making the following ```php {filename:App/Exceptions/Handler.php} use Sentry\Laravel\Integration; -public function register() +public function register(): void { $this->reportable(function (Throwable $e) { Integration::captureUnhandledException($e); @@ -77,7 +77,7 @@ Visiting this route will trigger an exception that will be captured by Sentry. ## Performance Monitoring -Set `traces_sample_rate` in `config/sentry.php` or `SENTRY_TRACES_SAMPLE_RATE` in your `.env` to a value greater than `0.0`. Setting a value greater than `0.0` will enable Performance Monitoring, `0` (the default) will disable Performance Monitoring. +Set `traces_sample_rate` in `config/sentry.php` or `SENTRY_TRACES_SAMPLE_RATE` in your `.env` to a value greater than `0.0`. Setting a value greater than `0.0` will enable Performance Monitoring, `null` (the default) will disable Performance Monitoring. ```shell {filename:.env} # Be sure to lower this value in production otherwise you could burn through your quota quickly.