title: The sequence of calling functions in laravel route?
body: <p>Example below:</p>
  
  <pre><code>Route::get('users/{id}', function ($id) {
      //code
  })-&gt;where('id', '[0-9]+');
  </code></pre>
  
  <p>The anonymous function will be called first or "where" function will be called first?</p>
  
  <p>In my opinion, I think the anonymous function will be called first. But I think this is not reasonable, I think it is reasonable that only the id meet the regular expressions can call the anonymous function. </p>
  
  <p>So what sequence is it exactly?</p>