title: Posting form in Laravel 4.1 and blade template
body: <p>I'm having trouble posting forms using Laravel 4.1 with the blade template engine. The problem seems to be that the full URL including http:// is being included in the form action attribute. If I hard code the form open html manually and use a relative url, it works OK, however, when it has the full url, I am getting an exception.</p>
  
  <p>routes.php</p>
  
  <pre><code>Route::any("/", 'HomeController@showWelcome');
  </code></pre>
  
  <p>HomeController.php</p>
  
  <pre><code>public function showWelcome()
  {   
      echo($_SERVER['REQUEST_METHOD']);
      return View::make('form');
  }
  </code></pre>
  
  <p>Form opening tag in form.blade.php</p>
  
  <pre><code>{{ Form::open(["url" =&gt; "/","method" =&gt; "post","autocomplete" =&gt; "off"]) }}
  {{ Form::label("username", "Username") }}
  {{ Form::text("username", Input::old("username"), ["placeholder" =&gt; "john.smith"]) }}
  {{ Form::label("password", "Password") }}
  {{ Form::password("password", ["placeholder" =&gt; ""]) }}
  {{ Form::submit("login") }}
  {{ Form::close() }}
  </code></pre>
  
  <p>So if I go to my home dir / in the browser, I see the form that I have created. If I fill in the form details and click submit, I am simply taken to the same page - the request method is still GET as shown by  echo($_SERVER['REQUEST_METHOD']);</p>
  
  <p>I notice that the full </p>
  
  <pre><code>http://localhost/subdir/public/ 
  </code></pre>
  
  <p>url is used in the form markup. If I hardcode a form open tag in such as </p>
  
  <pre><code>&lt;form action="/subdir/public/" method="post"&gt; 
  </code></pre>
  
  <p>it works fine and $_SERVER['REQUEST_METHOD'] shows as post. </p>
  
  <p>What am I doing wrong here?</p>