where('alpha2', strtoupper($value)); if ($this->activeOnly) { $query->where('is_active', true); } if (! $query->exists()) { $fail('The :attribute must be a supported country.'); } } }