Skip to content

Commit

Permalink
[1.x] Add method to fix octane route caching. (#659)
Browse files Browse the repository at this point in the history
* add getRoutes to the providesRouting Trait

* Update ProvidesRouting.php

---------

Co-authored-by: charlesbilbo <[email protected]>
Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
3 people authored Mar 13, 2023
1 parent 9944af2 commit 8bf55ba
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Concerns/ProvidesRouting.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,14 @@ public function invokeRoute(Request $request, string $method, string $uri): Resp
{
return call_user_func($this->routes[$method.$uri], $request);
}

/**
* Get the registered Octane routes.
*
* @return array
*/
public function getRoutes(): array
{
return $this->routes;
}
}

0 comments on commit 8bf55ba

Please sign in to comment.