ReplaceFirst
class ReplaceFirst extends StringMutator (View source)
Replace the first occurrence of the search string with the replacement string.
Ported from illuminate/support
to prevent package collisions.
Traits
Methods
__construct(string $search, string $replace, bool $caseSensitive = true)
No description
static ReplaceFirst
make(string $search, string $replace, bool $caseSensitive = true)
No description
string
mutateString(string $value)
No description
Details
__construct(string $search, string $replace, bool $caseSensitive = true)
No description
static ReplaceFirst
make(string $search, string $replace, bool $caseSensitive = true)
No description
final mixed
mutate(mixed $value)
Mutate the input value.
protected string
mutateString(string $value)
No description
protected string
resolveStringInput(mixed $value)
No description