Skip to content

Commit

Permalink
Merge pull request #63 from zlodes/dev-treshold-dotenv
Browse files Browse the repository at this point in the history
Ability to change queries treshold via .env
  • Loading branch information
mpociot authored May 21, 2020
2 parents 3f68947 + 548cc1d commit ec094ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ec094ce

Please sign in to comment.