Do this instead
public function test(Request $request, $name)
{
dd($name);
}
Hi to all, in my web.php i have this simple route:
$app->get('test/{name}', 'ExampleController@test');
And the controller:
public function test(Request $request)
{
dd($request->get('name'));
}
I did tried to access this page in any way, and even i got "Sorry, the page you are looking for could not be found."
http://test-lumen.app/test
http://test-lumen.app/test?name=foo
http://test-lumen.app/test/?name=foo
http://test-lumen.app/test/?name\=foo
Sure, lumen is configured well and route without parameters works.
Please or to participate in this conversation.