Laravel 5.3 add multi-language functionality

During a recent project, we faced the issue of adding a multi-language functionality to our application. We store our Laravel applications on DigitalOcean, but this tutorial will work basically on any other hosting company. Using Laravel middlewares we found a quite easy and straight forward solution. In this tutorial we will show you how to easily create your own. Add available locales in the configurations In order to allow only certain locales to work , simple add right below the locale key  in config/app.php the following array: ‘locales’ => [ ‘en’ => ‘English’, ‘it’ => ‘Italiano’], Create a custom middleware …

Read moreLaravel 5.3 add multi-language functionality