title: Localization with Laravel5 without domain.com/language/
body: <p>I'm setting up a learning-by-doing project with Laravel and facing localization. I've seen on the forum that there's a language-package available but I think (assume) Laravel provides something I'm looking for, although I don't know where to look yet.</p>
  
  <p>Basically I have a view which renders using blade. Nothing special. I've tried to use <code>App::setLocale('nl')</code> to get the translations, which works nice.</p>
  
  <p>Then, after my view got a bit messy I started to put some stuff in several files using <code>@extends()</code> and <code>@section()</code>, I noticed each file has to call <code>App::setLocale()</code> in order to fetch the translations. This seems a bit unhandy...</p>
  
  <p>Is there a way to set the language for the entire life-cycle of a request for all views and subviews? (Without Laravel I would store this using <code>$_SESSION[]</code>, <code>$_COOKIE</code> or in the database and then setting it in the index.php-file)</p>
  
  <p>I'm not trying to develop something like <code>www.domain.com/nl/stuff</code> for the Dutch version and <code>www.domain.com/en/stuff</code> for the English version. There's no need for SEO since I'm creating a sort-of web-app.</p>
  
  <p>Any idea where to find this?</p>
  
  <p>P.s. I know I can set the language in <code>/config/app.php</code> but I would also like to provide a language-dropdown for users to select their desired language. (Where the number of available languages could grow)</p>