Skip to content

Commit 548cc1d

Browse files
author
Zlatoslav Desyatnikov
committed
Ability to change queries treshold via .env
1 parent dc41392 commit 548cc1d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ return [
5252
* Threshold level for the N+1 query detection. If a relation query will be
5353
* executed more then this amount, the detector will notify you about it.
5454
*/
55-
'threshold' => 1,
55+
'threshold' => (int) env('QUERY_DETECTOR_TRESHOLD', 1),
5656

5757
/*
5858
* Here you can whitelist model relations.

config/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Threshold level for the N+1 query detection. If a relation query will be
1212
* executed more then this amount, the detector will notify you about it.
1313
*/
14-
'threshold' => 1,
14+
'threshold' => (int) env('QUERY_DETECTOR_TRESHOLD', 1),
1515

1616
/*
1717
* Here you can whitelist model relations.

0 commit comments

Comments
 (0)