*/ public function getAvailableLanguages(string $path = 'lang'): array { return collect(File::directories(base_path($path)))->mapWithKeys(function ($path) { $code = basename($path); return [$code => title_case(Locale::getDisplayName($code, $code))]; })->toArray(); } }