protected function nullableFromArray(array $attributes = [])
    {
        if (is_array($this->nullable) && count($this->nullable) > 0) {
            return array_intersect_key($attributes, array_flip($this->nullable));
        }

        // Assume no fields are nullable
        return [];
    }
protected function nullableFromArray(array $attributes = [])
    {
        if (is_array($this->nullable) && count($this->nullable) > 0) {
            return array_intersect_key($attributes, array_flip($this->nullable));
        }

        // Assume no fields are nullable
        return [];
    }
protected function nullableFromArray ( array $ attributes = [ ] ) { if ( is_array ( $ this -> nullable ) && count ( $ this -> nullable ) > 0 ) { return array_intersect_key ( $ attributes , array_flip ( $ this -> nullable ) ) ; } // Assume no fields are nullable return [ ] ; }
Get the nullable attributes of a given array.

@param  array $attributes

@return array
Get the nullable attributes of a given array .