How to Publish the lang Directory in Laravel 11?

06-Mar-2024

.

Admin

How to Publish the lang Directory in Laravel 11?

Hi Dev,

In this article, I'll teach you how to put the lang folder in Laravel 11.

Laravel 11 has a simpler way it's set up. It has new features like per-second rate limiting and health routing.

Usually, Laravel projects don't have the lang folder because it's not used much. So, in Laravel 11, the lang folder isn't there at first. But if you want it, you can add it with this command:

Laravel 11 Publish lang Directory Command


php artisan lang:publish

Laravel 11 Publish lang Directory Command IF you have already lang Folder

php artisan lang:publish --existing

You will see the lang folder as the below:

laravel-11-lang-publish.png

Now, you can manage multi languages with laravel lang folder.

I hope it can help you...

#Laravel 11