Laravel getRouteGroup

function getRouteGroup() {
    $route = Route::currentRouteName();
    $arr = explode(".", $route);
    return $arr['0'];
}

you can use to...

function createLink() {
    $route = Route::currentRouteName();
    $arr = explode(".", $route);
    return '/' . $arr['0'] . '/create';
}