Skip to content

Commit

Permalink
Tweak route match code (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvermeyen authored Apr 8, 2023
1 parent 3efa560 commit 386a0e6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Controllers/FallbackController.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ protected function redirectResponse()
*/
protected function findRouteByUrl(string $url)
{
return Collection::make(Route::getRoutes())->first(function ($route) use ($url) {
return $route->matches(Request::create($url));
});
return Route::getRoutes()->match(Request::create($url));
}

/**
Expand Down

0 comments on commit 386a0e6

Please sign in to comment.