src/Concerns/HasMiddleware.php
protected function callProxyMethods(string $name, array &$arguments, $result = null)
    {
        if ($this->getMiddlewareGroup(Caller::TYPE_CALLER)->isNotEmpty()) {
            $middleware = $this->getMiddlewareGroup(Caller::TYPE_CALLER);
            $result = $this->callMiddleware($middleware, $name, $arguments, Caller::TYPE_CALLER, $result);

        } elseif ($this->magicMethodsFallbackLocally && is_callable([$this, $name])) {
            $result = $this->$name($arguments);
        }
        return $result;
    }
protected function callProxyMethods(string $name, array &$arguments, $result = null)
    {
        if ($this->getMiddlewareGroup(Caller::TYPE_CALLER)->isNotEmpty()) {
            $middleware = $this->getMiddlewareGroup(Caller::TYPE_CALLER);
            $result = $this->callMiddleware($middleware, $name, $arguments, Caller::TYPE_CALLER, $result);

        } elseif ($this->magicMethodsFallbackLocally && is_callable([$this, $name])) {
            $result = $this->$name($arguments);
        }
        return $result;
    }
Sends the request to the method MiddleMans and returns the final response.

@throws \MichaelRShelton\MiddleMan\Exceptions\HaltPropagationException if requested

@param string $name
@param array $arguments
@param mixed $result
@return mixed