first(); if ($emailProviderBlacklist) { switch ($emailProviderBlacklist->banned) { case 1: $fail(__('custom.invalid_email', ['email' => $value])); break; case 2: $fail(__('custom.unknown_provider', ['email' => $value, 'domain' => $email])); break; } } } }