Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Dec 16, 2020
1 parent afe08c6 commit b7c5582
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@
## Installing

```shell
$ composer require overtrue/laravel-query-logger --dev -vvv
$ composer require overtrue/laravel-query-logger -vvv
```

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

> Please keep the `--dev` option.
## Usage

```shell
Expand All @@ -26,15 +24,15 @@ $ tail -f ./storage/logs/laravel.log

### Configuration

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

*config/logging.php:*

```php
return [
//...
'query' => [
'enabled' => env('LOG_QUERY', false),
'enabled' => env('LOG_QUERY', env('APP_ENV') === 'local'),

// Only record queries that are slower than the following time
// Unit: milliseconds
Expand Down

0 comments on commit b7c5582

Please sign in to comment.