It seems that the rules for rewriting your Apacheor Nginxsever are incorrectly configured, so Lumen cannot parse the URL correctly. If you use Nginx, use this configuration:
index index.html index.htm index.php;
location @rewrite {
rewrite ^/(.*)$ /index.php;
}
location / {
try_files $uri $uri/ @rewrite;
}
And the routes should start with /:
$app->get('/contact-us/{msg?}', function () {
echo Input::all();
});
, RoutesRequests.php, .