1
我有一点麻烦让Laravel 4路线工作 - 只是无法让我的头在它周围,我做错了什么。不能通过uri段
我的作曲家包是最新的,我使用最新版本的illuminate/app。
这里的工作正常路线:
GET /hello
Route::get('hello', function()
{
return 'yey';
});
但我就是不能得到第二URI段传递的PARAM。
这不起作用:
GET /hello/1
Route::get('hello/(:num)', function($id)
{
return 'yey ' . $id;
});
或者:
GET /hello/1
Route::get('hello/(:any)', function($id)
{
return 'yey ' . $id;
});
最后,我希望有一个控制器来处理我的东西 - 但我不知道我在做什么错此时此刻。
谢谢菲尔 - 这是修复! – acairns