protected function filterModelEventResults($result)
    {
        if (is_array($result)) {
            $result = array_filter($result, function ($response) {
                return ! is_null($response);
            });
        }

        return $result;
    }
protected function filterModelEventResults($result)
    {
        if (is_array($result)) {
            $result = array_filter($result, function ($response) {
                return ! is_null($response);
            });
        }

        return $result;
    }
protected function filterModelEventResults ( $ result ) { if ( is_array ( $ result ) ) { $ result = array_filter ( $ result , function ( $ response ) { return ! is_null ( $ response ) ; } ) ; } return $ result ; }
Filter the model event results.

@param  mixed  $result
@return mixed
Filter the model event results .