Skip to content

Commit

Permalink
fix bug with request rebind and url defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed May 18, 2020
1 parent c66fcc3 commit 6ad92bf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Illuminate/Routing/UrlGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,14 @@ public function setRequest(Request $request)

$this->cachedRoot = null;
$this->cachedScheme = null;
$this->routeGenerator = null;

tap(optional($this->routeGenerator)->defaultParameters ?: [], function ($defaults) {
$this->routeGenerator = null;

if (! empty($defaults)) {
$this->defaults($defaults);
}
});
}

/**
Expand Down

0 comments on commit 6ad92bf

Please sign in to comment.