Skip to content

Commit

Permalink
nitpick
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Feb 20, 2018
1 parent 7ac52ab commit c64f768
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,13 @@ Alternatively you can apply the middleware on the route or route group level.

```php
// in a routes file

Route::get('my-page', 'MyController')->middleware(Spatie\Csp\AddCspHeaders::class);
```

You can also pass a profile class as a parameter to the middleware:

```php
// in a routes file

Route::get('my-page', 'MyController')->middleware(Spatie\Csp\AddCspHeaders::class . ':' . MyProfile::class);
```

Expand Down

0 comments on commit c64f768

Please sign in to comment.