From e83cc52d2a96ec2cb215d839d52f8b7c9d794793 Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 18 Jul 2018 12:41:13 -0500 Subject: [PATCH] revert #24872 --- src/Illuminate/Http/Request.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; } /**