Skip to content

Commit

Permalink
More minor readme updates: squash later
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjohnkane committed Feb 17, 2020
1 parent 10d6a4b commit 3efde03
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ composer require thomasjohnkane/slow-query-notifier
```
## Usage
### Set an email address
```bash
```php
// app/Providers/AppServiceProvider.php

use SlowQueryNotifier\SlowQueryNotifierFacade as SlowQueryNotifier;
Expand All @@ -23,7 +23,8 @@ public function boot()
SlowQueryNotifier::toEmail('[email protected]');
}
```
### Test it works
### Test it works (in Production)
If you are using this in production (as intendend) make sure it is working correctly:
```bash
php artisan sqn:test
```
Expand All @@ -39,7 +40,7 @@ In general, we setup all of the configuration for you with sensible defaults. Ho
### Threshold

The default is 99ms. Set a different `threshold` in milliseconds in your configuration:
```bash
```php
SlowQueryNotifier::threshold(200)->toEmail('[email protected]');
```
### Enable/Disable
Expand Down

0 comments on commit 3efde03

Please sign in to comment.