我有这样的路线:Laravel怎么弄路线基本基于对路由名称
Route::get('/test',['as'=>'test','custom_key'=>'custom_value','uses'=>'[email protected]'])
我一直在试图用$routeProfile=route('test');
但结果是返回的URL string http://domain.app/test
我需要['as'=>'test','custom_key'=>'custom_value']
使我可以获得$routeProfile['custom_key']
如何根据路由名称获取'custom_value'?
这里'custom_key'意思是什么? –
嗨@AddWebSolutionPvtLtd,我手动添加它像一些标记路由配置文件。也许我可以为菜单层次添加'description','parent'或'is_displayed'。 – msdme
我已经用两种不同的方式添加了答案,您可以根据需要选择。 –