Skip to content

Commit bb3d196

Browse files
authored
Prepare 3.4.0 (#688)
1 parent d30d531 commit bb3d196

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# Changelog
22

3+
## 3.4.0
4+
5+
The Sentry SDK team is happy to announce the immediate availability of Sentry Laravel SDK v3.4.0.
6+
7+
### Features
8+
9+
- Add helper to report lazy loading violations [(#678)](https://github.com/getsentry/sentry-laravel/pull/678)
10+
11+
We've added a new helper that makes reporting lazy loading violation to Sentry in production very easy:
12+
13+
```php
14+
// See: https://laravel.com/docs/10.x/eloquent-relationships#preventing-lazy-loading
15+
\Illuminate\Database\Eloquent\Model::preventLazyLoading();
16+
17+
// In production we just report the lazy loading violation instead of crashing the application since it's a performance issue not a security issue
18+
if (app()->isProduction()) {
19+
\Illuminate\Database\Eloquent\Model::handleLazyLoadingViolationUsing(
20+
\Sentry\Laravel\Integration::lazyLoadingViolationReporter(),
21+
);
22+
}
23+
```
24+
25+
We let you know which model and relation caused the lazy loading violation and we also include the origin of the violation so you can find the culprit quickly.
26+
27+
- Reintroduce Laravel Lumen support [(#685)](https://github.com/getsentry/sentry-laravel/pull/685)
28+
29+
We dropped support for Laravel Lumen (10.x) in v3.0.0, but we are happy to announce that it is back!
30+
331
## 3.3.3
432

533
The Sentry SDK team is happy to announce the immediate availability of Sentry Laravel SDK v3.3.3.

0 commit comments

Comments
 (0)