public function mask(array $mask)
    {
        $keys = [];
        foreach ($mask as $key => $value) {
            $keys[] = $key . (is_array($value) ? $this->processMask($value) : '');
        }

        return $this->only($keys);
    }
public function mask(array $mask)
    {
        $keys = [];
        foreach ($mask as $key => $value) {
            $keys[] = $key . (is_array($value) ? $this->processMask($value) : '');
        }

        return $this->only($keys);
    }
public function mask ( array $ mask ) { $ keys = [ ] ; foreach ( $ mask as $ key => $ value ) { $ keys [ ] = $ key . ( is_array ( $ value ) ? $ this -> processMask ( $ value ) : '' ) ; } return $ this -> only ( $ keys ) ; }
Mask input data with a given mapping.

@param array $mask

@return array
Mask input data with a given mapping .