public function merge( array $values, array $allowedKeys = [] )
    {
        $this->data = array_merge(
            $this->data,
            array_only( $values, array_merge(array_keys( $this->data ), $allowedKeys) )
        );

        $this->persist();

        return $this;
    }
public function merge( array $values, array $allowedKeys = [] )
    {
        $this->data = array_merge(
            $this->data,
            array_only( $values, array_merge(array_keys( $this->data ), $allowedKeys) )
        );

        $this->persist();

        return $this;
    }
public function merge ( array $ values , array $ allowedKeys = [ ] ) { $ this -> data = array_merge ( $ this -> data , array_only ( $ values , array_merge ( array_keys ( $ this -> data ) , $ allowedKeys ) ) ) ; $ this -> persist ( ) ; return $ this ; }
Merge the given array into existing values. Require whitelist to add keys

@param array $values
@param array $allowedKeys
@return array
Merge the given array into existing values . Require whitelist to add keys