Skip to content

Commit 3efde03

Browse files
More minor readme updates: squash later
1 parent 10d6a4b commit 3efde03

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

1919
use 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
2829
php 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

4142
The default is 99ms. Set a different `threshold` in milliseconds in your configuration:
42-
```bash
43+
```php
4344
SlowQueryNotifier::threshold(200)->toEmail('admin@example.com');
4445
```
4546
### Enable/Disable

0 commit comments

Comments
 (0)