src/Filters/EmailFilter.php
public function filter($value, array $options = [])
    {
        return is_string($value)
            ? filter_var(Str::lower(trim($value)), FILTER_SANITIZE_EMAIL)
            : $value;
    }
public function filter($value, array $options = [])
    {
        return is_string($value)
            ? filter_var(Str::lower(trim($value)), FILTER_SANITIZE_EMAIL)
            : $value;
    }
public function filter ( $ value , array $ options = [ ] ) { return is_string ( $ value ) ? filter_var ( Str :: lower ( trim ( $ value ) ) , FILTER_SANITIZE_EMAIL ) : $ value ; }
Sanitize email of the given string.

@param  mixed  $value
@param  array  $options

@return string|mixed
Sanitize email of the given string .