title: Username as subdomain on laravel
body: <p>I've set up a wildcard subdomain *.domain.com &amp; i'm using the following .htaccess:</p>
  
  <pre><code>Options +FollowSymLinks
  RewriteEngine On
  RewriteBase /
  
  RewriteCond %{HTTP_HOST} !www\.
  RewriteCond %{HTTP_HOST} (.*)\.domain\.com
  RewriteRule .* index.php?username=%1 [L]
  </code></pre>
  
  <p>Everything works perfectly.</p>
  
  <p>I want to implement this method in laravel. Mainly I want to have my user's profile displayed when you go to username.domain.com. Any ideas on achieving this?</p>