-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More minor readme updates: squash later
- Loading branch information
1 parent
10d6a4b
commit 3efde03
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
@@ -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 | ||
``` | ||
|
@@ -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 | ||
|