diff --git a/src/Illuminate/Http/Request.php b/src/Illuminate/Http/Request.php index 8eb4f8050d0a..3039ac89bc28 100644 --- a/src/Illuminate/Http/Request.php +++ b/src/Illuminate/Http/Request.php @@ -184,7 +184,13 @@ public function segments() */ public function is(...$patterns) { - return Str::is($patterns, $this->decodedPath()); + foreach ($patterns as $pattern) { + if (Str::is($pattern, $this->decodedPath())) { + return true; + } + } + + return false; } /**