diff --git a/src/LaravelApiExplorer.php b/src/LaravelApiExplorer.php index 4ce381c..5f4320e 100644 --- a/src/LaravelApiExplorer.php +++ b/src/LaravelApiExplorer.php @@ -5,6 +5,7 @@ use Route; use ReflectionParameter; use ReflectionMethod; +use Illuminate\Support\Str; class LaravelApiExplorer { @@ -73,8 +74,8 @@ private function filterRoutes($routes) $uri = trim($route->uri(), '/'); if ( - !str_is($match, $name) && - !str_is($match, $uri) + !Str::is($match, $name) && + !Str::is($match, $uri) ) { continue; }