From 402179df795692611fe9b6bc703f27c0c0964ed5 Mon Sep 17 00:00:00 2001 From: Monn Date: Tue, 15 Aug 2023 10:03:57 +0200 Subject: [PATCH] Update Route.php --- src/Helpers/Route.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Helpers/Route.php b/src/Helpers/Route.php index 8acfa0e..ff326b0 100644 --- a/src/Helpers/Route.php +++ b/src/Helpers/Route.php @@ -58,6 +58,9 @@ public static function isActiveRoute($routeName) */ public static function isRouteActive($routeName) { + if (route_name() === null) { + return false; + } return fnmatch($routeName, route_name()); }