src/Validators/Validator.php
public function sanitizeInput(array $input)
    {
        return $input = collect($input)->reject(function ($value) {
            return is_null($value) || empty($value);
        })->toArray();
    }
public function sanitizeInput(array $input)
    {
        return $input = collect($input)->reject(function ($value) {
            return is_null($value) || empty($value);
        })->toArray();
    }
public function sanitizeInput ( array $ input ) { return $ input = collect ( $ input ) -> reject ( function ( $ value ) { return is_null ( $ value ) || empty ( $ value ) ; } ) -> toArray ( ) ; }
Remove null and empty values from the input.

@param array $input

@return array
Remove null and empty values from the input .