title: Laravel Routes not working like they're supposed to
body: <p>I am creating an API to save and send events, nothing special about it... I've done it before but for some reason that I can't understand I'm getting this response from a normal route</p>
  
  <p>I need to return an array of collections, nothing wrong about it, in tinker seems to work fine. But my problem doesn't involve data.</p>
  
  <p>I want to do this:</p>
  
  <p><strong>(in routes/api.php)</strong></p>
  
  <pre class="lang-php prettyprint-override"><code>Route::get('activity/events', function() {
      return 'hi there';
  });
  </code></pre>
  
  <p>But I got a 204 code in Postman with <code>my-site.test/api/activity/events</code>
  The funny thing is, if I do this:</p>
  
  <p><strong>(in routes/api.php)</strong></p>
  
  <pre class="lang-php prettyprint-override"><code>Route::get('activity/events/{foo}', function() {
      return 'hi there';
  });
  </code></pre>
  
  <p>I receive the message with no problem with <code>my-site.test/api/activity/events/bar</code></p>
  
  <p>Am I doing something wrong? I really don't know where to look for an answer</p>
  
  <p>Thanks, everyone!</p>
  
  <p>EDIT: I'm using the most up-to-date versions of everything</p>
  
  <p><strong>Update</strong>: The problem I experienced is related to the answer below. I had:</p>
  
  <p><code>Route::resource('/activity', 'ActivityController');</code></p>
  
  <p>before: <code>Route::prefix('activity') ...</code></p>
  
  <p>For anyone reading this, please don't make the same mistake!</p>