src/Palmabit/Library/Views/Helper.php
public static function get_active_route_name($match, $active = 'active')
    {
        $route_name = Route::currentRouteName();
        return (strcasecmp(static::get_base_route_name($route_name), $match) == 0) ? $active : '';
    }
public static function get_active_route_name($match, $active = 'active')
    {
        $route_name = Route::currentRouteName();
        return (strcasecmp(static::get_base_route_name($route_name), $match) == 0) ? $active : '';
    }
public static function get_active_route_name ( $ match , $ active = 'active' ) { $ route_name = Route :: currentRouteName ( ) ; return ( strcasecmp ( static :: get_base_route_name ( $ route_name ) , $ match ) == 0 ) ? $ active : '' ; }
Check if route name is the same as the current url and returns active state
@param $match
@param $active
Check if route name is the same as the current url and returns active state