From c57c8ff46a599ac4b468cea6c9390f5da73ad492 Mon Sep 17 00:00:00 2001 From: Reindert <16726304+reindert-vetter@users.noreply.github.com> Date: Thu, 13 Jan 2022 09:53:20 +0100 Subject: [PATCH] Update RouteNameMatcher.php --- src/Helper/RouteNameMatcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Helper/RouteNameMatcher.php b/src/Helper/RouteNameMatcher.php index b4fab10..f661056 100644 --- a/src/Helper/RouteNameMatcher.php +++ b/src/Helper/RouteNameMatcher.php @@ -17,7 +17,7 @@ public function __construct(Request $request) public function match(string $key): bool { $names = explode('|', $key); - $routeName = $this->request->route()->getName() + $routeName = $this->request->route()->getName(); if ($routeName === null) { return false; }