ReplaceLast
class ReplaceLast extends StringMutator (View source)
Replaces the last 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 ReplaceLast
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 ReplaceLast
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