From 25b98ecf4d0f0705ea7636d7ea30a4e046c15b08 Mon Sep 17 00:00:00 2001 From: Andres Kalle Date: Thu, 2 Oct 2025 13:41:46 +0300 Subject: [PATCH 1/2] Fixed string utility examples --- strings.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/strings.md b/strings.md index a8cba3d2e7..777a34ccd9 100644 --- a/strings.md +++ b/strings.md @@ -3055,7 +3055,7 @@ use Illuminate\Support\Str; $string = Str::of('Arkansas is quite beautiful!')->remove('quite'); -// Arkansas is beautiful! +// Arkansas is beautiful! ``` You may also pass `false` as a second parameter to ignore case when removing strings. @@ -3567,7 +3567,7 @@ use Illuminate\Support\Str; $string = Str::of('Foo Bar')->ucsplit(); -// collect(['Foo', 'Bar']) +// collect(['Foo ', 'Bar']) ``` From ac4d425ef739a93b512c4b84ff03f6545b2f1651 Mon Sep 17 00:00:00 2001 From: Andres Kalle Date: Thu, 2 Oct 2025 14:28:08 +0300 Subject: [PATCH 2/2] Updated Str::remove example --- strings.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/strings.md b/strings.md index 777a34ccd9..c19c9f675f 100644 --- a/strings.md +++ b/strings.md @@ -3053,9 +3053,9 @@ The `remove` method removes the given value or array of values from the string: ```php use Illuminate\Support\Str; -$string = Str::of('Arkansas is quite beautiful!')->remove('quite'); +$string = Str::of('Arkansas is quite beautiful!')->remove('quite '); -// Arkansas is beautiful! +// Arkansas is beautiful! ``` You may also pass `false` as a second parameter to ignore case when removing strings.