Skip to content

Commit

Permalink
Web middleware also required for route restriction (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephcrowell authored Sep 26, 2024
1 parent c100b9e commit 32bd1f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ The `security` property can be user, guest or all. The `redirect` property refer
Access to routes can be restricted by applying the `AuthMiddleware`.

```php
Route::group(['middleware' => 'Winter\User\Classes\AuthMiddleware'], function () {
Route::group(['middleware' => ['web', 'Winter\User\Classes\AuthMiddleware']], function () {
// All routes here will require authentication
});
```
Expand Down

0 comments on commit 32bd1f3

Please sign in to comment.