private function parseUniqueRule($field, array $parameters, $type)
    {
        // If we have a unique rule, make sure it's built correctly
        if ($type != 'unique') return $parameters;

        // The first item may be null, remove it if that's the case
        $parameters = array_filter($parameters);

        // Determine primary key
        $primaryKey = (isset($this->primaryKey)) ? $this->primaryKey : 'id';

        // Construct unique rule correctly
        $rule = [
            array_get($parameters, 0, $this->getTable()),
            array_get($parameters, 1, $field),
            array_get($parameters, 2, $this->{$primaryKey}),
            array_get($parameters, 3, $primaryKey)
        ];

        // Merge in any other parameters we have
        return $this->mergeArrayFromIndex($rule, $parameters, 4);
    }