title: Laravel 5.4 - Route does not exist
body: <p>I have a simple link on a page to a URL test:</p>
  
  <pre><code>&lt;a href="{{ URL('test')}}" title="test"&gt;
  </code></pre>
  
  <p>In web.php I have defined:</p>
  
  <pre><code>Route::get('test', function(){
      $parts = DB::table('partdetails')-&gt;limit(100);
      dd($parts);
      return view('test',compact($parts));
      })-&gt;name('test');
  </code></pre>
  
  <p>I also have a very basic view in the root directory of resources\views call test.blade.php.</p>
  
  <p>When I try this I get</p>
  
  <blockquote>
    <p>The requested resource /test was not found on this server.</p>
  </blockquote>
  
  <p>I cannot get this!</p>