Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
$ composer require overtrue/laravel-query-logger --dev -vvv
```

Laravel Query Logger will be enabled when `APP_DEBUG` is `true`.
Laravel Query Logger will be enabled when `LOG_QUERY` is `true`.

> Please keep the `--dev` option.

Expand All @@ -26,7 +26,7 @@ $ tail -f ./storage/logs/laravel.log

### Configuration

If you want to use it in a production environment, you can control whether or not to log a query via the configuration file:
If you want to use it in a environment, you can control whether or not to log a query via the configuration file:

*config/logging.php:*

Expand Down
2 changes: 1 addition & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ServiceProvider extends LaravelServiceProvider
*/
public function boot()
{
if (!$this->app['config']->get('app.debug') && !$this->app['config']->get('logging.query.enabled', false)) {
if (!$this->app['config']->get('logging.query.enabled', false)) {
return;
}

Expand Down