src/Services/Saver.php
protected function forgetNullValues($relation, $values)
    {
        $keys = explode('.', $this->getQualifiedRelatedKeyName($relation));
        $key = array_pop($keys);

        return array_filter((array) $values[$key], function ($value) {
            return null !== $value;
        });
    }
protected function forgetNullValues($relation, $values)
    {
        $keys = explode('.', $this->getQualifiedRelatedKeyName($relation));
        $key = array_pop($keys);

        return array_filter((array) $values[$key], function ($value) {
            return null !== $value;
        });
    }
protected function forgetNullValues ( $ relation , $ values ) { $ keys = explode ( '.' , $ this -> getQualifiedRelatedKeyName ( $ relation ) ) ; $ key = array_pop ( $ keys ) ; return array_filter ( ( array ) $ values [ $ key ] , function ( $ value ) { return null !== $ value ; } ) ; }
Remove null values from data.

@param $relation
@param $values

@return array
Remove null values from data .