Skip to content

Commit 5882267

Browse files
authored
Update README.md
1 parent 62ae9fa commit 5882267

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ protected $middleware = [
5050
];
5151
```
5252

53+
If you register the middleware globally, you may exclude requests by using the static `skipWhen` method. You can add a callback to interact with the request:
54+
55+
```php
56+
XssCleanInput::skipWhen(function (Request $request) {
57+
return $request->is('admin.*');
58+
});
59+
```
60+
5361
## Configuration
5462

5563
### File uploads

0 commit comments

Comments
 (0)