830 0 0 0
Last Updated : 2025-04-28 21:52:21
In this snippet I will teach you how to make your laravel project multi language
Hello guys,
In this snippet I will teach you how to make your laravel project multi language.
The whole idea of this method is to access session and put locale in session with value of the language you want. and make a middleware to check if session has locale value and then change the app locale based on the session locale value, and this middleware will be applied on all web routes. So let's get started in details
1- go to config/app then add the following array like this
'languages' => [
'ar' => '???
Read Also