src/Bridge.php
public function cleanOptions($options = [])
    {
        // If item is null or empty we will remove them.
        return collect($options)->reject(function ($item) {
            return empty($item) || is_null($item);
        })->all();
    }
public function cleanOptions($options = [])
    {
        // If item is null or empty we will remove them.
        return collect($options)->reject(function ($item) {
            return empty($item) || is_null($item);
        })->all();
    }
public function cleanOptions ( $ options = [ ] ) { // If item is null or empty we will remove them. return collect ( $ options ) -> reject ( function ( $ item ) { return empty ( $ item ) || is_null ( $ item ) ; } ) -> all ( ) ; }
Clean options by removing empty items.

@param array $options

@return array
Clean options by removing empty items .