We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fb0ee5 commit 6a954eeCopy full SHA for 6a954ee
src/Illuminate/Routing/RouteCompiler.php
@@ -47,7 +47,7 @@ public function compile()
47
*/
48
protected function getOptionalParameters()
49
{
50
- preg_match_all('/{(\w+?)\?}/', $this->route->uri(), $matches);
+ preg_match_all('/\{(\w+?)\?\}/', $this->route->uri(), $matches);
51
52
return isset($matches[1]) ? array_fill_keys($matches[1], null) : [];
53
}
0 commit comments