public function getRoutesName($contains = null, $exact = true)
    {
        $routeCollection = \Route::getRoutes();

        $routes = collect($routeCollection)->map(function($item){
            return $item->getName();
        })->filter(function($item){
            return !is_null($item);
        })->values();

        if($contains){
            return $routes->contains(function($item, $key) use($contains,$exact) {
                return $exact ? $contains == $item : str_contains($item, $contains);
            });
        }

        return $routes;
    }