src/Torann/RemoteModel/Model.php
protected function makeRequest($endpoint = null, $method, $params)
    {
        $endpoint = $endpoint ?: $this->getEndpoint();

        // Prepend relationship, if one exists.
        if (static::getParentID()) {
            $params = array_merge([
                static::getParentID()
            ], $params);
        }

        $results = call_user_func_array([static::$client->$endpoint(), $method], $params);

        // Set errors from server...if any
        $this->messageBag = static::$client->errors();

        return $results;
    }
protected function makeRequest($endpoint = null, $method, $params)
    {
        $endpoint = $endpoint ?: $this->getEndpoint();

        // Prepend relationship, if one exists.
        if (static::getParentID()) {
            $params = array_merge([
                static::getParentID()
            ], $params);
        }

        $results = call_user_func_array([static::$client->$endpoint(), $method], $params);

        // Set errors from server...if any
        $this->messageBag = static::$client->errors();

        return $results;
    }
protected function makeRequest ( $ endpoint = null , $ method , $ params ) { $ endpoint = $ endpoint ? : $ this -> getEndpoint ( ) ; // Prepend relationship, if one exists. if ( static :: getParentID ( ) ) { $ params = array_merge ( [ static :: getParentID ( ) ] , $ params ) ; } $ results = call_user_func_array ( [ static :: $ client -> $ endpoint ( ) , $ method ] , $ params ) ; // Set errors from server...if any $ this -> messageBag = static :: $ client -> errors ( ) ; return $ results ; }
Make request through the API client.

@return mixed
Make request through the API client .