/** * Unknown methods calls will be handled by various integrations. * * @param $method * @param $args * * @return mixed|\Spatie\String\Str * * @throws UnknownFunctionException */ public function __call($method, $args) { $underscore = new Underscore(); if ($underscore->isSupportedMethod($method)) { return $underscore->call($this, $method, $args); } throw new UnknownFunctionException(sprintf('String function %s does not exist', $method)); }