diff --git a/src/Illuminate/Routing/Route.php b/src/Illuminate/Routing/Route.php index 7664500784f8..02518733300c 100755 --- a/src/Illuminate/Routing/Route.php +++ b/src/Illuminate/Routing/Route.php @@ -583,7 +583,7 @@ public function parentOfParameter($parameter) { $key = array_search($parameter, array_keys($this->parameters)); - if ($key === 0) { + if ($key === 0 || $key === false) { return; }