public function isDefaultLocaleSupported($defaultLocale) { if (!$this->isSupportedLocale($defaultLocale)) { throw new UnsupportedLocaleException("Laravel default locale [{$defaultLocale}] is not in the `supported-locales` array."); } }