src/ModelFilter.php
public function removeEmptyInput($input)
    {
        $filterableInput = [];

        foreach ($input as $key => $val) {
            if ($val !== '' && $val !== null) {
                $filterableInput[$key] = $val;
            }
        }

        return $filterableInput;
    }
public function removeEmptyInput($input)
    {
        $filterableInput = [];

        foreach ($input as $key => $val) {
            if ($val !== '' && $val !== null) {
                $filterableInput[$key] = $val;
            }
        }

        return $filterableInput;
    }
public function removeEmptyInput ( $ input ) { $ filterableInput = [ ] ; foreach ( $ input as $ key => $ val ) { if ( $ val !== '' && $ val !== null ) { $ filterableInput [ $ key ] = $ val ; } } return $ filterableInput ; }
Remove empty strings from the input array.

@param array $input
@return array
Remove empty strings from the input array .