Skip to content

Commit 790c68a

Browse files
committed
Merge pull request #254 from meowcakes/master
BUG: using UrlGenerator with routes that have bound parameters
2 parents c5e9eb4 + 0ff73d1 commit 790c68a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Routing/Route.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ public function isOptional($key)
280280
*/
281281
public function getParameterKeys()
282282
{
283-
return array_keys($this->getParameters());
283+
return $this->compile()->getVariables();
284284
}
285285

286286
/**

0 commit comments

Comments
 (0)