You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> If you want to learn how to create reusable PHP packages yourself, take a look at my upcoming [PHP Package Development](https://phppackagedevelopment.com) video course.
If you run your application in the `debug` mode, the query monitor will be automatically active. So there is nothing you have to do.
28
-
29
-
By default, this package will display an `alert()` message to notify you about an N+1 query found in the current request.
30
-
31
-
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).
32
-
33
-
You can publish the package's configuration using this command:
You can find the documentation on our [website](http://beyondco.de/docs/laravel-query-detector).
112
26
113
-
If you need additional logic to run when the package detects unoptimized queries, you can listen to the `\BeyondCode\QueryDetector\Events\QueryDetected` event and write a listener to run your own handler. (e.g. send warning to Sentry/Bugsnag, send Slack notification, etc.)
0 commit comments