title: Format URL query string (like Stack Overflow) with Laravel 5
body: <p>In my web application I'd like to have URLs to posts, exactly like here in Stack Overflow. For example:</p>
  
  <p><a href="http://mydomain/posts/214741/this-is-the-postname" rel="nofollow">http://mydomain/posts/214741/this-is-the-postname</a></p>
  
  <p>However when I write a route like:</p>
  
  <pre><code>Route::get('post/{postid}/{postname}',array('as' =&gt; 'postlink', 'uses' =&gt; 'Post@singlePost'));
  </code></pre>
  
  <p>What happens right now is the following:</p>
  
  <p>1) Paste this link in address bar:</p>
  
  <pre><code>http://mydomain/en/post/214741/postname
  </code></pre>
  
  <p>2) Press enter, and due to the get request the link becomes:</p>
  
  <pre><code>http://mydomain/en/post/214741/postname?q=post%2F214741%2Fpostname
  </code></pre>
  
  <p>However, what I want is that the URL stays exactly the same as when I pasted it, exactly how it happens when you paste a Stack Overflow link in your browser and click Enter.</p>
  
  <p>I need it to be a get request because users can use the link directly and therefore my controller needs to get the information directly from it. </p>
  
  <p>What would be the best way to deal with this situation with Laravel?</p>
  
  <p>My <code>.htaccess</code> file is:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      &lt;IfModule mod_negotiation.c&gt;
          Options -MultiViews
      &lt;/IfModule&gt;
  
      RewriteEngine On
  RewriteBase /public
  
      # Redirect Trailing Slashes...
      RewriteRule ^(.*)/$ /$1 [L,R=301]
  
      # Handle Front Controller...
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      #RewriteRule ^ index.php [L]
      RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]
  &lt;/IfModule&gt;
  </code></pre>