Skip to content

Commit 9f6d2e3

Browse files
authored
Merge pull request #32 from hms5232/hms5232-patch-1
fix docs wrong position
2 parents 9b25380 + 072a20a commit 9f6d2e3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,17 @@ ServerTiming::setDuration('Running expensive task', function() {
6161

6262
You can also use the Server-Timing middleware to only set textual information without providing a duration.
6363

64+
```php
65+
ServerTiming::addMetric('User: '.$user->id);
66+
```
67+
6468
## Publishing configuration file
6569

6670
The configuration file could be published using:
6771
`php artisan vendor:publish --tag=server-timing-config`
6872

6973
You can disable the middleware changing the `timing.enabled` configuration to false.
7074

71-
```php
72-
ServerTiming::addMetric('User: '.$user->id);
73-
```
74-
7575
### Testing
7676

7777
``` bash

0 commit comments

Comments
 (0)