How to Publish the lang Folder in Laravel 11?

By Hardik Savani September 4, 2024 Category : Laravel

Hi Dev,

In this post, i will show you how to publish the lang directory in laravel 11 framework.

Laravel 11 comes with a slimmer application skeleton. Laravel 11 introduce streamlined application structure, per-second rate limiting, health routing etc.

Normally, Laravel projects don't have to include language files because they're not often used. That's why, in Laravel 11, the "lang" folder isn't there by default. But if you do need it, you can add it by using 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 Publish lang Directory Command

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

I hope it can help you...

Shares