title: Translate website using Pretty URL's in Laravel
body: <p>I'm trying to learn how to develop my website using Laravel 5.</p>
  
  <p>Now i'm working on the languages of the site, but I have some questions that I hope you guys might know how to solve.</p>
  
  <p>I know that the Location service helps a lot when translating the site, but I want something a little more complicated. I want to put a <code>&lt;select&gt;&lt;/select&gt;</code> tag at the top of my header where the user will have the option to change to another language.</p>
  
  <p>Right now, I have already created the following folders that will have all the information to be translated.</p>
  
  <pre><code>-resources
      -lang
          -en
              messages.php
          -es
              messages.php
  </code></pre>
  
  <p>Each <strong>messages.php</strong> file has the complete directory of the information to be translated.</p>
  
  <p>I know how to do this using pure <strong>php ($_SESSION)</strong> and <strong>jQuery</strong>, but I have no idea how to do this with laravel.</p>
  
  <p>I would like that the website has will look like this:</p>
  
  <pre><code>/[about] 
  /[contact] 
  /en 
  /en/[about] 
  /en/[contact] 
  /fr 
  /fr/[about]
  /fr/[contact]
  </code></pre>
  
  <p>Hope you guys help.
  Thanks.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I just found a laravel package which can help to manage this kind specific issue in the proper way.</p>
  
  <p>The package name is Laravel Localization and it's pretty easy to use.</p>
  
  <p><a href="https://github.com/mcamara/laravel-localization" rel="nofollow">Link here</a></p>