Just curious to see if anyone else was having this issue.
From a fresh Lumen installation adding a test route as such:
$app->get('/test', function() use ($app) {
return $app->welcome();
});
Trying to access from /test will work fine, but /test/ will return a 404. Should this not be working? The .htaccess has the rule to handle trailing slashes, as well as the NGINX rules packed in with Homestead and Forge.
What exactly do you mean by setup @bashy? Are there ways to hardcode in the forward slashes? That could be potentially useful for the small app I'm trying to convert to Lumen from just stock PHP.
Regardless, Lumen and Laravel both ship with the .htaccess (or Homestead or Forge for NGINX configs) to handle URIs with trailing slashes to 301 redirect to the URI without the trailing slash. It's just clearly not working with Lumen. ¯_(ツ)_/¯
@Colbydude The trailing slash is web server side, if your app doesn't work with them it's because your web server setup isn't reading the trailing slash and rewriting it to the index.php file.
Right, I get that. I'm just having trouble figuring out why trailing slashes will work with a fresh Laravel 4/5 app, but not Lumen when sharing the same server setup. So I'm trying to figure out what makes Lumen different from Laravel in that regard. Especially if a handful of other people are having the same issue. I just don't know the deep inner-workings of either framework well enough to know what to look for, nor have the time to do the research. =\