2
如何從命名路線中刪除索引?命名路線包含索引
//routes
Route::group(array('prefix' => 'reports/finance'), function()
{
Route::controller('/', 'Reports\Finance\HomeController', ['getIndex' => 'reports.finance']);
});
//view
{{ HTML::linkRoute('reports.finance', 'admin', ['captial-admin']) }}
它生成的網址 -
/reports/finance/index/captial-admin
我什麼之後 -
/reports/finance/captial-admin
theres no index there ...我不確定它可以在不修改核心的情況下完成嗎?它相當煩人:( – mybigman