Merge branch 'master' of github.com:akaunting/akaunting
This commit is contained in:
commit
94dda670e6
@ -43,9 +43,13 @@ class App extends Provider
|
||||
Model::preventLazyLoading(config('app.eager_load'));
|
||||
|
||||
Model::handleLazyLoadingViolationUsing(function ($model, $relation) {
|
||||
$class = get_class($model);
|
||||
|
||||
report("Attempted to lazy load [{$relation}] on model [{$class}].");
|
||||
if (config('logging.default') == 'sentry') {
|
||||
\Sentry\Laravel\Integration::lazyLoadingViolationReporter();
|
||||
} else {
|
||||
$class = get_class($model);
|
||||
|
||||
report("Attempted to lazy load [{$relation}] on model [{$class}].");
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
803
composer.lock
generated
803
composer.lock
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user