Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbaljet authored Feb 2, 2022
1 parent 62ae9fa commit 5882267
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ protected $middleware = [
];
```

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:

```php
XssCleanInput::skipWhen(function (Request $request) {
return $request->is('admin.*');
});
```

## Configuration

### File uploads
Expand Down

0 comments on commit 5882267

Please sign in to comment.