Skip to content

Commit a76359f

Browse files
Merge pull request dingo#1696 from christoph-kluge/refresh-route-collection
Refresh RouteCollection before dispatching to the route actions
2 parents e718128 + 310460c commit a76359f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Routing/Adapter/Laravel.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ protected function mergeOldRoutes($version)
111111
foreach ($this->oldRoutes as $route) {
112112
$this->mergedRoutes[$version]->add($route);
113113
}
114+
115+
$this->mergedRoutes[$version]->refreshNameLookups();
116+
$this->mergedRoutes[$version]->refreshActionLookups();
114117
}
115118

116119
return $this->mergedRoutes[$version];

0 commit comments

Comments
 (0)