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::preventLazyLoading(config('app.eager_load'));
|
||||||
|
|
||||||
Model::handleLazyLoadingViolationUsing(function ($model, $relation) {
|
Model::handleLazyLoadingViolationUsing(function ($model, $relation) {
|
||||||
|
if (config('logging.default') == 'sentry') {
|
||||||
|
\Sentry\Laravel\Integration::lazyLoadingViolationReporter();
|
||||||
|
} else {
|
||||||
$class = get_class($model);
|
$class = get_class($model);
|
||||||
|
|
||||||
report("Attempted to lazy load [{$relation}] on model [{$class}].");
|
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