title: Laravel optional parameter missing required parameters
body: <pre><code>Route::get('/products/{page?}', 'ProductController@index')-&gt;name('products');
  Route::get('/products/{category}/{page?}', 'ProductController@index')-&gt;name('products');
  </code></pre>
  
  <p>I created a two routes.</p>
  
  <p>First one for all products, other for categories.</p>
  
  <p>I got an error:</p>
  
  <blockquote>
    <p>Missing required parameters for [Route: products] [URI:
    products/{category}/{page?}].</p>
  </blockquote>
  
  <p>It is laravel: 5.5</p>
  
  <p>I am calling all products like this:</p>
  
  <pre><code>{{ route('products') }}
  </code></pre>