Skip to content

Commit 4be4c18

Browse files
authored
Update README.md for Laravel 10 (#638)
1 parent d64cf29 commit 4be4c18

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ This is the official Laravel SDK for [Sentry](https://sentry.io/)
1919

2020
## Getting Started
2121

22-
The installation step below work on the latest versions of the Laravel framework (8.x and 9.x).
22+
The installation step below work on the latest versions of the Laravel framework (8.x, 9.x and 10.x).
2323

2424
For other Laravel or Lumen versions see:
2525

26-
- [Laravel 8.x & 9.x](https://docs.sentry.io/platforms/php/guides/laravel/)
26+
- [Laravel 8.x & 9.x & 10.x](https://docs.sentry.io/platforms/php/guides/laravel/)
2727
- [Laravel 6.x & 7.x](https://docs.sentry.io/platforms/php/guides/laravel/other-versions/laravel6-7/)
2828
- [Laravel 5.x](https://docs.sentry.io/platforms/php/guides/laravel/other-versions/laravel5/)
2929
- [Laravel 4.x](https://docs.sentry.io/platforms/php/guides/laravel/other-versions/laravel4/)
@@ -42,7 +42,7 @@ Enable capturing unhandled exception to report to Sentry by making the following
4242
```php {filename:App/Exceptions/Handler.php}
4343
use Sentry\Laravel\Integration;
4444

45-
public function register()
45+
public function register(): void
4646
{
4747
$this->reportable(function (Throwable $e) {
4848
Integration::captureUnhandledException($e);
@@ -69,10 +69,12 @@ SENTRY_LARAVEL_DSN=___PUBLIC_DSN___
6969
### Usage
7070

7171
```php
72+
use function Sentry\captureException;
73+
7274
try {
7375
$this->functionFailsForSure();
7476
} catch (\Throwable $exception) {
75-
\Sentry\captureException($exception);
77+
captureException($exception);
7678
}
7779
```
7880

@@ -82,10 +84,11 @@ try {
8284

8385
The Laravel versions listed below are all currently supported:
8486

85-
- Laravel `>= 6.x.x` on PHP `>= 7.2` is supported starting from `1.2.0`
86-
- Laravel `>= 7.x.x` on PHP `>= 7.2` is supported starting from `1.7.0`
87-
- Laravel `>= 8.x.x` on PHP `>= 7.3` is supported starting from `1.9.0`
87+
- Laravel `>= 10.x.x` on PHP `>= 8.1` is supported starting from `3.2.0`
8888
- Laravel `>= 9.x.x` on PHP `>= 8.0` is supported starting from `2.11.0`
89+
- Laravel `>= 8.x.x` on PHP `>= 7.3` is supported starting from `1.9.0`
90+
- Laravel `>= 7.x.x` on PHP `>= 7.2` is supported starting from `1.7.0`
91+
- Laravel `>= 6.x.x` on PHP `>= 7.2` is supported starting from `1.2.0`
8992

9093
Please note that starting with version `>= 2.0.0` we require PHP Version `>= 7.2` because we are using our new [PHP SDK](https://github.com/getsentry/sentry-php) underneath.
9194

0 commit comments

Comments
 (0)