Skip to content

Commit

Permalink
Update README.md for L11 Middleware config
Browse files Browse the repository at this point in the history
Explains how to apply middleware when L11 bootstrap/app.php is being used. See #50
  • Loading branch information
colinmackinlay authored Sep 4, 2024
1 parent c36b481 commit 1e2b18c
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 @@ -92,6 +92,14 @@ class VerifyCsrfToken extends Middleware
}
```

In Laravel 11 this is done in `bootstrap/app.php`:
```
->withMiddleware(function (Middleware $middleware) {
$middleware->validateCsrfTokens(except: [
'support-bubble',
]);
})
```
#### Configure message destination

Finally, you need to decide where you want to send the support bubble's submission to.
Expand Down

0 comments on commit 1e2b18c

Please sign in to comment.