611 0 0 0
In this snippet I will teach you how to make your laravel project multi language
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' => '???