public function setVersion($current, $apiName = null)
    {
        // Reset pre-cached properties
        $this->current = $current;
        $this->apiName = $apiName;

        $this->routePath = null;
        $this->latest = $this->getConfig('version');

        // Path can be only one or one for each api
        $this->path = config('api.resources_path');
        if (is_array($this->path)) {
            $this->path = $this->getConfig('resources_path');
        }

        $this->resources = $this->getConfig('resources');

        return $this;
    }