src/Primitive/String/String.php
public function startsWith($needles, $caseSensitive = true)
    {
        return Str::startsWith(
            $this->string, $this->getSearchable($needles), $this->getBoolable($caseSensitive, true)
        );
    }
public function startsWith($needles, $caseSensitive = true)
    {
        return Str::startsWith(
            $this->string, $this->getSearchable($needles), $this->getBoolable($caseSensitive, true)
        );
    }
Determine if String starts with a given needles.
The comparison is case-sensitive, but can be made insensitive
by setting $caseSensitive to false.

@param mixed $needles
@param bool $caseSensitive
@return bool