Skip to content

Commit 0d92e1c

Browse files
authored
Merge pull request #20 from janpio/patch-2
Add more alternative outputs to README
2 parents 66517e1 + 4901f8e commit 0d92e1c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ The package will automatically register itself.
2323

2424
If you run your application in the `debug` mode, the query monitor will be automatically active. So there is nothing you have to do.
2525

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).
26+
By default, this package will display an `alert()` message to notify you about an N+1 query found in the current request.
27+
28+
If you rather want this information to be written to your `laravel.log` file, written to your browser's console log as a warning or listed in a new tab for the [Laravel Debugbar (barryvdh/laravel-debugbar)](https://github.com/barryvdh/laravel-debugbar), you can publish the configuration and change the output behaviour (see example below).
2729

2830
You can publish the package's configuration using this command:
2931

@@ -71,6 +73,10 @@ return [
7173
* Displays an alert on the website
7274
* \BeyondCode\QueryDetector\Outputs\Alert::class
7375
*
76+
* Debugbar: (make sure you have the barryvdh/laravel-debugbar package installed)
77+
* Writes the N+1 queries into a custom messages collector of Debugbar
78+
* \BeyondCode\QueryDetector\Outputs\Debugbar::class
79+
*
7480
* Log:
7581
* Writes the N+1 queries into the Laravel.log file
7682
* \BeyondCode\QueryDetector\Outputs\Log::class

0 commit comments

Comments
 (0)