@php $currentLang = app()->getLocale(); $langFolderPath = resource_path("lang/$currentLang"); $filePaths = \File::files($langFolderPath); @endphp @foreach ($filePaths as $filePath) @php $fileName = pathinfo($filePath, PATHINFO_FILENAME); @endphp @endforeach