Support the ongoing development of Laravel.io →
Requests Architecture

I'm working about a website that need more languages. I start the project using Laravel Localization solution. Now I have to create an admin panel where the administator can modify the translations. How can I set language file array by code? I haven't founded any function that can help me, so I would write every time by code the php file with the translated strings, but I don't know the absolute path of lang directory (resources/lang).

How can I solve this problem?

Thanks

Last updated 2 years ago.
0

You should be able to get the full path to the language folder with App::langPath()

0

Sign in to participate in this thread!

Eventy

Your banner here too?

sbabu sbabu Joined 25 May 2017

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.