lumen-routing

Lumen installation error

人盡茶涼 提交于 2020-01-13 19:46:11
问题 I am trying to install lumen with composer so I used the command below composer create-project --prefer-dist laravel/lumen api But, for some reason I am getting this error before even doing anything, just visiting the public folder. Sorry, the page you are looking for could not be found. 1/1 NotFoundHttpException in RoutesRequests.php line 442: in RoutesRequests.php line 442 at Application->handleDispatcherResponse(array('0')) in RoutesRequests.php line 381 at Application->Laravel\Lumen

Route with dot (IP address) not found, returns 404

删除回忆录丶 提交于 2019-12-24 11:56:01
问题 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

Just installed Lumen and got NotFoundHttpException

会有一股神秘感。 提交于 2019-12-21 07:35:42
问题 I'm searching for a solution ... it's getting so frustrating. After a fresh installation of Lumen by Laravel, I simply can't access the "/" route. When I try to, it throws an error: NotFoundHttpException in RoutesRequests.php line 443: in RoutesRequests.php line 443 at Application->handleDispatcherResponse(array('0')) in RoutesRequests.php line 380 at Application->Laravel\Lumen\Concerns\{closure}() in RoutesRequests.php line 629 at Application->sendThroughPipeline(array(), object(Closure)) in

Lumen installation error

倾然丶 夕夏残阳落幕 提交于 2019-12-06 07:02:33
I am trying to install lumen with composer so I used the command below composer create-project --prefer-dist laravel/lumen api But, for some reason I am getting this error before even doing anything, just visiting the public folder. Sorry, the page you are looking for could not be found. 1/1 NotFoundHttpException in RoutesRequests.php line 442: in RoutesRequests.php line 442 at Application->handleDispatcherResponse(array('0')) in RoutesRequests.php line 381 at Application->Laravel\Lumen\Concerns{closure}() in RoutesRequests.php line 624 at Application->sendThroughPipeline(array(), object