title: how to access API routes with middleware auth:api in laravel 5.3?
body: <p>I am able to access routes declared in the api.php(route) with middleware <strong>'api'</strong>. But not able to do the same with the routes that has <strong>'auth:api'</strong>.
  I guess only authenticated users can access the latter route. But when i access it after logging in , it just redirects me to home. how to fix this or am i following wrong procedure ? </p>
  
  <pre><code>Route::get('/user', function () {
  echo "Hello";
  })-&gt;middleware('auth:api');
  
  Route::get('/work',function(){
  echo "Hello";
  })-&gt;middleware('api');
  </code></pre>