Skip to content

Commit

Permalink
Update Route.php
Browse files Browse the repository at this point in the history
  • Loading branch information
RamonSmit authored Aug 15, 2023
1 parent 2a837e6 commit 402179d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Helpers/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 402179d

Please sign in to comment.