Skip to content

Commit

Permalink
Wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bakerkretzmar committed May 16, 2024
1 parent ea2d06a commit bbcc2bb
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/Ziggy.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,8 @@ private function nameKeyedRoutes()
$routes->put($name, $route);
});

$allRoutes = $this->folioRoutes();

$routes->map(function ($route, $name) use ($bindings, $allRoutes) {
$allRoutes->put(
return tap($this->folioRoutes(), fn ($all) => $routes->each(
fn ($route, $name) => $all->put(
$name,
collect($route)->only(['uri', 'methods', 'wheres'])
->put('domain', $route->domain())
Expand All @@ -159,10 +157,8 @@ private function nameKeyedRoutes()
return $collection->put('middleware', $route->middleware());
})
->filter()
);
});

return $allRoutes;
)
));
}

/**
Expand Down

0 comments on commit bbcc2bb

Please sign in to comment.