From a22459f644bdab02045ca3c8a41cd92dfa211a96 Mon Sep 17 00:00:00 2001 From: Arno Simon Date: Fri, 19 Jul 2024 06:43:31 +0200 Subject: [PATCH] Update README.md (#88) Fix the withouMiddleware call. The middleware is not excluded when doing ```php WebAuthnRoutes::register()->withoutMiddleware(VerifyCsrfToken::class); ``` --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ffdb09a..4405e23 100644 --- a/README.md +++ b/README.md @@ -147,7 +147,9 @@ use Laragear\WebAuthn\Http\Routes as WebAuthnRoutes; Route::view('welcome'); // WebAuthn Routes -WebAuthnRoutes::register()->withoutMiddleware(VerifyCsrfToken::class); +Route::withoutMiddleware([VerifyCsrfToken::class])->group(function () { + WebAuthnRoutes::register(); +}); ``` > [!TIP]