Before
class Before extends StringMutator (View source)
Retrieves the part of a string before a given substring.
Traits
Methods
__construct(string $search, bool $last = false)
No description
static Before
first(string $search)
Retrieves the part of a string before the first occurrence of a given substring.
static Before
last(string $search)
Retrieves the part of a string before the last occurrence of a given substring.
string
mutateString(string $value)
No description
Details
__construct(string $search, bool $last = false)
No description
static Before
first(string $search)
Retrieves the part of a string before the first occurrence of a given substring.
static Before
last(string $search)
Retrieves the part of a string before the last occurrence of a given substring.
static Before
make(string $search, bool $last = false)
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