private function validateEmail($email)
    {
        if (! filter_var($email, FILTER_VALIDATE_EMAIL)) {
            throw MakeUserException::invalidEmail($email);
        }

        if (app(config('auth.providers.users.model'))->where('email', $email)->exists()) {
            throw MakeUserException::emailExists($email);
        }
    }
private function validateEmail($email)
    {
        if (! filter_var($email, FILTER_VALIDATE_EMAIL)) {
            throw MakeUserException::invalidEmail($email);
        }

        if (app(config('auth.providers.users.model'))->where('email', $email)->exists()) {
            throw MakeUserException::emailExists($email);
        }
    }
private function validateEmail ( $ email ) { if ( ! filter_var ( $ email , FILTER_VALIDATE_EMAIL ) ) { throw MakeUserException :: invalidEmail ( $ email ) ; } if ( app ( config ( 'auth.providers.users.model' ) ) -> where ( 'email' , $ email ) -> exists ( ) ) { throw MakeUserException :: emailExists ( $ email ) ; } }
Determine if the given email address already exists.

@param  string  $email
@return void

@throws \Dyrynda\Artisan\Exceptions\MakeUserException
Determine if the given email address already exists .