I use Lumen 5.4
.
This is how my route is setup:
$app->get('/ip/{ip}', GeoIpController::class . '@show');
The {ip}
route parameter should be an IP address, with dots in it. However, it seems there is a problem when a route has dots in it. It returns a 404 not found error.
I am aware I could pass the IP address in as a simple GET
request parameter, but want the IP to be part of the URL and to be handled like a route parameter.
For testing purposes, I use php -S localhost:8080 -t public
to serve the application.
via wujt