diff --git a/src/LaravelStringHelpers.php b/src/LaravelStringHelpers.php index bf27a6b..fa50cbd 100644 --- a/src/LaravelStringHelpers.php +++ b/src/LaravelStringHelpers.php @@ -24,7 +24,7 @@ protected function registerLaravelStringFunctions(): void if ($this->isLaravelEnvironment()) { foreach ($this->getLaravelStringMethods() as $method) { - $this->function($method, fn(...$args) => $method(...$args)); + $this->function($method, fn(...$args) => \Illuminate\Support\Str::$method(...$args)); } } }