title: Laravel 5.6 API Routes error 404
body: <p>My api routes are returning a 404 error no matter how I set them up in my routes/api.php. This worked like a charm pre-5.6. What happened? Am I missing something after setting up the vanilla application?</p>
  
  <p>Edit: Here is my routes/api.php</p>
  
  <pre><code>&lt;?php
  
      use Illuminate\Support\Facades\DB;
      use Illuminate\Http\Request;
  
      Route::get('/api/members', function (Request $request) {
          // code to get members
      });
  
      Route::middleware('auth:api')-&gt;get('/user', function (Request $request) {
          return $request-&gt;user();
      });
  </code></pre>
  
  <p>Hitting <a href="http://www.mysite.loc/api/members" rel="nofollow noreferrer">http://www.mysite.loc/api/members</a> yields a 404 screen in Laravel and in Postman. What's odd is this route works just fine if I put it in my routes/web.php file.</p>