From 1e2b18c0683f23976f3236d317c1d2e35b282b2c Mon Sep 17 00:00:00 2001 From: colinmackinlay Date: Wed, 4 Sep 2024 18:26:16 +0100 Subject: [PATCH] Update README.md for L11 Middleware config Explains how to apply middleware when L11 bootstrap/app.php is being used. See #50 --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 289f02a..5987b40 100644 --- a/README.md +++ b/README.md @@ -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.