Merge branch 'master' of github.com:akaunting/akaunting

This commit is contained in:
Cüneyt Şentürk 2023-05-31 10:02:34 +03:00
commit 94dda670e6
2 changed files with 435 additions and 378 deletions

View File

@ -43,9 +43,13 @@ class App extends Provider
Model::preventLazyLoading(config('app.eager_load'));
Model::handleLazyLoadingViolationUsing(function ($model, $relation) {
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

File diff suppressed because it is too large Load Diff