title: Laravel 5.4: How to set a first and default parameter to route() function
body: <p>I 'm passing a prefix parameter to all routes on my webiste:</p>
  
  <pre><code>Route::prefix("{param}")-&gt;group(function () {
      # code...
  });
  </code></pre>
  
  <p>Sometimes I need to call the <code>route()</code> function in the views. The problem is there, because I need to pass the <code>$param</code> as first parameter like:</p>
  
  <p>resources\views\welcome.blade.php</p>
  
  <pre><code>&lt;a href="{{ route('about-us', $param) }}"&gt;About Us&lt;/a&gt;
  </code></pre>
  
  <p>The question is: I do not need to pass <code>$param</code> in <code>route()</code> function because its not necessary. How to avoid this and do just the following:</p>
  
  <pre><code>&lt;a href="{{ route('about-us') }}"&gt;About Us&lt;/a&gt;
  </code></pre>
  
  <p>Is there a way to create a middleware and set a "global" configuration to <code>route()</code> function?</p>