title: The path when using the route name is incorrect Laravel
body: <p><code>web.php</code> in routes folder:</p>
  
  <pre><code>Route::get('contact-us', function (){return 'hello everyone';})-&gt;name('contact');
  </code></pre>
  
  <p>and <code>test.php</code> in views folder:</p>
  
  <pre><code>&lt;a href="{{route('contact')}}"&gt; Go to Contact page &lt;/a&gt;
  </code></pre>
  
  <p>But when I click the link in the browser it shows the wrong address: </p>
  
  <pre><code>http://localhost:9000/%7B%7Broute('contact')%7D%7D 
  </code></pre>
  
  <p>instead of </p>
  
  <pre><code>http://localhost:9000/contact-us
  </code></pre>
  
  <p>This is my screen:</p>
  
  <p><a href="https://i.stack.imgur.com/x897o.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x897o.png" alt="enter image description here"></a></p>