title: Laravel 5.6 additional Route::resource() Parameters
body: <p>I would like to know how to add additional parameters to Laravel's Route Resource without using Query Strings.</p>
  
  <p>I created a controller (CustomerController) with all the built-in resources and then, added the following route:</p>
  
  <pre><code>Route::resource('customers', 'CustomerController');
  </code></pre>
  
  <p>What i would like to do is add additional parameters to some of the default resources without creating custom routes or using query strings. For example:</p>
  
  <p>Default resource with optional parameter (index):</p>
  
  <pre><code>public function index($page = 0)
  {
      //...
  }
  </code></pre>
  
  <p>Desired URL:</p>
  
  <pre><code>http://www.example.com/customers
  http://www.example.com/customers/{page}
  </code></pre>
  
  <p>I tried the following, but i get a not found exception (NotFoundHttpException):</p>
  
  <pre><code>Route::resource('customers', 'CustomerController')-&gt;parameters([
      'index' =&gt; 'page'
  ]);
  </code></pre>
  
  <p>Is this possible? If so, how can i accomplish it?</p>