Skip to content

Conversation

mjomble
Copy link
Contributor

@mjomble mjomble commented Oct 2, 2025

Some of the documentation examples are incorrect and make it seem like there's additional hidden functionality for removing whitespace.

I tested them in artisan tinker:

> Str::of('Arkansas is quite beautiful!')->remove('quite')
= Illuminate\Support\Stringable {#7012
    value: "Arkansas is  beautiful!",
  }

> Str::of('Foo Bar')->ucsplit()
= Illuminate\Support\Collection {#7005
    all: [
      "Foo ",
      "Bar",
    ],
  }

@taylorotwell taylorotwell merged commit 37786a8 into laravel:12.x Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants