Skip to content

Commit

Permalink
Update FolioRoutes.php
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell authored Aug 16, 2023
1 parent 6bc6ac3 commit 6f1d08e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/FolioRoutes.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,7 @@ protected function path(string $mountPath, string $path, array $parameters): arr
{
$uri = str_replace('.blade.php', '', $path);

$parameters = collect($parameters);
$usedParameters = collect();
[$parameters, $usedParameters] = [collect($parameters), collect()];

$uri = collect(explode('/', $uri))
->map(function (string $segment) use ($parameters, $uri, $usedParameters) {
Expand Down

0 comments on commit 6f1d08e

Please sign in to comment.