diff --git a/README.md b/README.md index 880e79a..f39b763 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ return [ * Threshold level for the N+1 query detection. If a relation query will be * executed more then this amount, the detector will notify you about it. */ - 'threshold' => 1, + 'threshold' => (int) env('QUERY_DETECTOR_TRESHOLD', 1), /* * Here you can whitelist model relations. diff --git a/config/config.php b/config/config.php index aa058d8..9ee1bb9 100644 --- a/config/config.php +++ b/config/config.php @@ -11,7 +11,7 @@ * Threshold level for the N+1 query detection. If a relation query will be * executed more then this amount, the detector will notify you about it. */ - 'threshold' => 1, + 'threshold' => (int) env('QUERY_DETECTOR_TRESHOLD', 1), /* * Here you can whitelist model relations.