title: NotFoundHttpException in RouteCollection.php line 161: Laravel index.php unable to access
body: <p>I know there are few questions already regarding this problem with Laravel. However, none of them solved my issue. So after installing larval with composer correctly, I have create the Laravel project folder within my htdocs. When I start my XAMPP server and try to access it via the url like</p>
  
  <pre><code>http://localhost/Php/myLaravel/public/index
  </code></pre>
  
  <p>I receive something a blank page or sometimes I receive this error message below.</p>
  
  <pre><code>NotFoundHttpException in RouteCollection.php line 161:
  in RouteCollection.php line 161
  at RouteCollection-&gt;match(object(Request)) in Router.php line 533
  at Router-&gt;findRoute(object(Request)) in Router.php line 512
  at Router-&gt;dispatchToRoute(object(Request)) in Router.php line 498
  at Router-&gt;dispatch(object(Request)) in Kernel.php line 174
  at Kernel-&gt;Illuminate\Foundation\Http\{closure}(object(Request)) in Pipeline.php line 30 at Pipeline-&gt;Illuminate\Routing\{closure}(object(Request)) in TransformsRequest.php line 30
  at TransformsRequest-&gt;handle(object(Request), object(Closure)) in Pipeline.php line 148
  at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 53
  at Pipeline-&gt;Illuminate\Routing\{closure}(object(Request)) in TransformsRequest.php line 30
  at TransformsRequest-&gt;handle(object(Request), object(Closure)) in Pipeline.php line 148
  at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 53
  </code></pre>
  
  <p>This is fresh installation and nothing has been changed. Here is the .htaccess file from the project folder </p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  &lt;IfModule mod_negotiation.c&gt;
      Options -MultiViews
  &lt;/IfModule&gt;
  
  RewriteEngine On
  
  # Redirect Trailing Slashes If Not A Folder...
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)/$ /$1 [L,R=301]
  
  # Handle Front Controller...
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^ index.php [L]
  
  # Handle Authorization Header
  RewriteCond %{HTTP:Authorization} .
  RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>Can someone please help? Thank you</p>