Laravel 5 change, switch language

Laravel 5 And His F*cking non-persistent App SetLocale :

If you ever have worked already with Laravel 5 (if not, you should), and that you needed a decent way to switch language into your application, well good luck.

The thing is, it was really easier with Laravel 4.

Ok I’m not going to explain why and how and all, because you know that I mainly use my website to store snippets and reminder about HOW I SOLVED THIS NIGHTMARE OF A PROBLEM.

Example on how to use multiple locales in your Laravel 5 website :

Set Locale with Middleware in Laravel 5 :

Laravel 5 :: Switch Language :

B logbook : PHP | Javascript | Laravel | CodeIgniter | VueJs | ReactJs | WordPress