Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/platforms/php/guides/laravel/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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);
Expand Down Expand Up @@ -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.
Expand Down