Skip to content

Commit 3f32b12

Browse files
Correct Middleware Class Path in Docs
Correct middleware class path in docs so it can be used just by copy-paste instead of adding `\` to top and then `::class` to end.
1 parent dbcfe7f commit 3f32b12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ composer require beyondcode/laravel-server-timing
1717

1818
## Usage
1919

20-
To add server-timing header information, you need to add the `BeyondCode\ServerTiming\Middleware\ServerTimingMiddleware` middleware to your HTTP Kernel.
20+
To add server-timing header information, you need to add the `\BeyondCode\ServerTiming\Middleware\ServerTimingMiddleware::class,` middleware to your HTTP Kernel.
2121
In order to get the most accurate results, put the middleware as the first one to load in the middleware stack.
2222

2323
By default, the middleware measures only three things, to keep it as light-weight as possible:

0 commit comments

Comments
 (0)