public function notSubmitterEmail($field, $value, $parameters)
    {
        if ($this->guard->guest()) {
            return true;
        }

        $userEmail = $this->guard->user()->email;
        $emails    = $this->bannedEmailService->getEmailTemplatesFromRepository()->push($value);

        foreach ($emails->all() as $emailTemplate) {
            $emailRule = new Email($emailTemplate);

            if ($emailRule->check($userEmail)) {
                return false;
            }
        }

        return true;
    }
public function notSubmitterEmail($field, $value, $parameters)
    {
        if ($this->guard->guest()) {
            return true;
        }

        $userEmail = $this->guard->user()->email;
        $emails    = $this->bannedEmailService->getEmailTemplatesFromRepository()->push($value);

        foreach ($emails->all() as $emailTemplate) {
            $emailRule = new Email($emailTemplate);

            if ($emailRule->check($userEmail)) {
                return false;
            }
        }

        return true;
    }
public function notSubmitterEmail ( $ field , $ value , $ parameters ) { if ( $ this -> guard -> guest ( ) ) { return true ; } $ userEmail = $ this -> guard -> user ( ) -> email ; $ emails = $ this -> bannedEmailService -> getEmailTemplatesFromRepository ( ) -> push ( $ value ) ; foreach ( $ emails -> all ( ) as $ emailTemplate ) { $ emailRule = new Email ( $ emailTemplate ) ; if ( $ emailRule -> check ( $ userEmail ) ) { return false ; } } return true ; }
Rule to check if the submitter e-mail address is not the same as the given one.

@param $field
@param string $value
@param array $parameters
@return bool
Rule to check if the submitter e - mail address is not the same as the given one .