Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Stoykov3186's avatar

Custom folder structure of /Lang

Hi guys!

How can I access & translate message located in "app/lang/CUSTOM_FOLDER/en/validation? Tried Lang::get('CUSTOM_FOLDER.validation.CUSTOM_MESSAGE), and also tried to swap the structure a bit, bit Laravel is still unable to access it. As far as I understand, the "get" method of ootb Translator class is searching the "lang" folder for the translation package, matching the current locale set. Is there any other way to achieve this, or I need to rewrite this method?

Thanks and cheers, Alex

0 likes
2 replies

Please or to participate in this conversation.