Skip to content

Commit 8b7e0e6

Browse files
committed
Merge branch 'master' of github.com:beyondcode/laravel-query-detector
2 parents 6f600f0 + 6f649ee commit 8b7e0e6

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
[![Quality Score](https://img.shields.io/scrutinizer/g/beyondcode/laravel-query-detector.svg?style=flat-square)](https://scrutinizer-ci.com/g/beyondcode/laravel-query-detector)
66
[![Total Downloads](https://img.shields.io/packagist/dt/beyondcode/laravel-query-detector.svg?style=flat-square)](https://packagist.org/packages/beyondcode/laravel-query-detector)
77

8-
The Laravel N+1 query detector helps you increase your application's performance by reducing the number of queries it executed.
9-
This package will monitor your queries while you develop your application and notify you when you should add eager loading (N+1 queries).
8+
The Laravel N+1 query detector helps you to increase your application's performance by reducing the number of queries it executes. This package monitors your queries in real-time, while you develop your application and notify you when you should add eager loading (N+1 queries).
109

1110
![Example alert](https://beyondco.de/github/n+1/alert.png)
1211

@@ -22,18 +21,17 @@ The package will automatically register itself.
2221

2322
## Usage
2423

25-
The query monitor will be automatically activated, if you are in debug mode.
24+
If you run your application in the `debug` mode, the query monitor will be automatically active. So there is nothing you have to do.
2625

27-
By default, this package will display an alert message to notify you about found N+1 queries in the current request.
28-
If you rather want this information to be written to your `laravel.log` file, you can publish the configuration and change the output behaviour.
26+
By default, this package will display an `alert()` message to notify you about an N+1 query found in the current request. If you rather want this information to be written to your `laravel.log` file, you can publish the configuration and change the output behaviour (see example below).
2927

3028
You can publish the package's configuration using this command:
3129

3230
```bash
3331
php artisan vendor:publish --provider=BeyondCode\\QueryDetector\\QueryDetectorServiceProvider
3432
```
3533

36-
This will publish the `querydetector.php` file in your config directory with the following contents:
34+
This will add the `querydetector.php` file in your config directory with the following contents:
3735

3836
```php
3937
<?php

0 commit comments

Comments
 (0)