title: How can I specify a guard in middleware for route?
body: <p>I have two routes as follow:</p>
  
  <pre><code>Route::GET('admins/', 'UserController@index')-&gt;middleware('jwt.auth');
  Route::GET('visitors', 'UserController@indexVisitors')-&gt;middleware('jwt.auth');
  </code></pre>
  
  <p>And I have guards in <strong>auth.php</strong>:</p>
  
  <pre><code>'guards' =&gt; [
      'web' =&gt; [
          'driver' =&gt; 'session',
          'provider' =&gt; 'users',
      ],
  
      'api' =&gt; [
          'driver' =&gt; 'jwt-auth',
          'provider' =&gt; 'users',
      ],
      'visitor_api' =&gt; [
          'driver' =&gt; 'jwt-auth',
          'provider' =&gt; 'visitors',
      ],
  ],
  </code></pre>
  
  <p>I tried to specify the guard in the middleware but it doesn't work.</p>
  
  <pre><code>Route::GET('visitors', 'UserController@indexVisitors')
  -&gt;middleware('jwt.auth.visitors_api');
  </code></pre>