title: How to create ONE Post route to allow changes/updates on many pages as admin?
body: <p>I have created an app and now it should allow an admin to update the content from the fronted. I have integrated TinyMCE. So far so good. However, instead of creating 100's of routes </p>
  
  <pre><code>Route::post('/category1/person1', [
      'uses' =&gt; 'MainController@infoupdate',
      'as' =&gt; 'infoupdate',
  ]);
  
  Route::post('/category1/person2', [
      'uses' =&gt; 'MainController@infoupdate',
      'as' =&gt; 'infoupdate2',
  ]);
  </code></pre>
  
  <p>etc...</p>
  
  <p>With DRY principle in mind, I want to use only ONE route. 
  I have tried using the <strong>where</strong> filter but that is giving me an error: </p>
  
  <blockquote>
    <p>missing route parameters</p>
  </blockquote>
  
  <pre><code>Route::post('/{type}/{person}', [
      'uses' =&gt; 'MainController@infoupdate',
      'as' =&gt; 'infoupdate',
  ])-&gt;where(['type' =&gt; '(actors|authors)', 'person' =&gt; '.*']);
  </code></pre>
  
  <p>The View:</p>
  
  <pre><code>@if($admin)
      &lt;form action="{{ route('infoupdate') }}" method="post"&gt;
          &lt;div class="form-group"&gt;
              &lt;label for="textareaeditor"&gt;&lt;/label&gt;
              &lt;textarea name="content" rows="10" class="form-control" id="textareaeditor"&gt;&lt;/textarea&gt;
          &lt;/div&gt;
          {{ csrf_field() }}
          &lt;button type="submit"&gt;Update&lt;/button&gt;
      &lt;/form&gt;
  @endif
  </code></pre>
  
  <p>What am I missing?</p>