如何从命名路由中删除索引?
路线
<?php
Route::group(array('prefix' => 'reports/finance'), function () {
Route::controller('/', 'Reports\Finance\HomeController', ['getIndex' => 'reports.finance']);
});
看法
{{ HTML::linkRoute('reports.finance', 'admin', ['captial-admin']) }}
生成的网址
/reports/finance/index/captial-admin
我想要的是...
/reports/finance/captial-admin