title: Laravel 5.1 - public folder issue
body: <p>I have installed laravel on windows server (using IIS 8.5) and I am having issues removing the public folder from the URL. I managed to make laravel's public folder as my domain's root folder which solved this issue, however, on form submit via ajax I am unable to remove the public folder from the url. For example:</p>
  
  <p>my domain is www.abc.com and I have a form, which on submit needs to post to www.abc.com/login. But I get 404 error if I don't include the public in the url. If I send a ajax request to www.abc.com/public/login, it works perfectly fine. </p>
  
  <p>I also add my web.config files: </p>
  
  <pre><code>1. outside public folder( in httpdocs folder)
  
          &lt;?xml version="1.0" encoding="UTF-8"?&gt;
          &lt;configuration&gt;
              &lt;system.webServer&gt;
                  &lt;rewrite&gt;
                    &lt;rules&gt;
                      &lt;rule name="Imported Rule 11" stopProcessing="true"&gt;
                    &lt;match url="^(.*)/$" ignoreCase="false" /&gt;
                    &lt;conditions&gt;
                      &lt;add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /&gt;
                    &lt;/conditions&gt;
                    &lt;action type="Redirect" redirectType="Permanent" url="/{R:1}" /&gt;
                  &lt;/rule&gt;
                    &lt;/rules&gt;
                  &lt;/rewrite&gt;
              &lt;/system.webServer&gt;
          &lt;/configuration&gt;
  
  
      2. inside public folder
  
      &lt;?xml version="1.0" encoding="UTF-8"?&gt;
      &lt;configuration&gt;
          &lt;system.webServer&gt;
              &lt;rewrite&gt;
                  &lt;rules&gt;
           &lt;rule name="Imported Rule 1" stopProcessing="true"&gt;
                &lt;match url="^(.*)/$" ignoreCase="false" /&gt;
                &lt;conditions&gt;
                  &lt;add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /&gt;
                &lt;/conditions&gt;
                &lt;action type="Redirect" redirectType="Permanent" url="/{R:1}"/&gt;
              &lt;/rule&gt;
              &lt;rule name="Imported Rule 2" stopProcessing="true"&gt;
                &lt;match url="^" ignoreCase="false" /&gt;
                &lt;conditions&gt;
                  &lt;add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /&gt;
                  &lt;add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /&gt;
                &lt;/conditions&gt;
            &lt;action type="Rewrite" url="index.php" /&gt;
              &lt;/rule&gt; 
                  &lt;/rules&gt;
              &lt;/rewrite&gt;    
          &lt;/system.webServer&gt;
      &lt;/configuration&gt;
  </code></pre>
  
  <p>I spent 12 hours searching many forums but couldn't get any solution. Any help will be highly appreciated as I am really stuck. Thanks  </p>