Skip to content

Commit 386a0e6

Browse files
authored
Tweak route match code (#92)
1 parent 3efa560 commit 386a0e6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: src/Controllers/FallbackController.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ protected function redirectResponse()
5454
*/
5555
protected function findRouteByUrl(string $url)
5656
{
57-
return Collection::make(Route::getRoutes())->first(function ($route) use ($url) {
58-
return $route->matches(Request::create($url));
59-
});
57+
return Route::getRoutes()->match(Request::create($url));
6058
}
6159

6260
/**

0 commit comments

Comments
 (0)