ied3vil wrote a nice package that we may use to set the locale and switches the languages when needed.

language

This package provides an easy to work with language switcher that you can use in your projects with a wide variety of config options. It automatically bootstraps to your Laravel project, sets the locale, and switches the languages when needed.

I know it may seem very simple and perhaps over-complicated, but you don't have to waste time and thought process on the simple things.