Pesquisa de coleção de Laravel
$routes = collect(Route::getRoutes()->getRoutesByName());
$serach = $routes->filter(function ($route) {
return Str::contains($route->getName(), "admin.");
});
dd($serach);
Shadow