File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ composer require thomasjohnkane/slow-query-notifier
1313```
1414## Usage
1515### Set an email address
16- ``` bash
16+ ``` php
1717// app/Providers/AppServiceProvider.php
1818
1919use SlowQueryNotifier\SlowQueryNotifierFacade as SlowQueryNotifier;
@@ -23,7 +23,8 @@ public function boot()
2323 SlowQueryNotifier::toEmail('admin@example.com');
2424}
2525```
26- ### Test it works
26+ ### Test it works (in Production)
27+ If you are using this in production (as intendend) make sure it is working correctly:
2728``` bash
2829php artisan sqn:test
2930```
@@ -39,7 +40,7 @@ In general, we setup all of the configuration for you with sensible defaults. Ho
3940### Threshold
4041
4142The default is 99ms. Set a different ` threshold ` in milliseconds in your configuration:
42- ``` bash
43+ ``` php
4344SlowQueryNotifier::threshold(200)->toEmail('admin@example.com');
4445```
4546### Enable/Disable
You can’t perform that action at this time.
0 commit comments