I have two namespaces 'Front'
and 'Admin'
. For 'Admin'
namespace it is OK to have all paths prefixed with admin.conrtoller.action
, but for 'Front'
I want to have prefixed route names without prefixed URIs.
Route::group(array('namespace' => 'Front'), function()
{
Route::resource('franchising', 'FranchisingController', array('only' => array('index')));
});
This generates me franchising.index
root name and get 'franchising'
URI. How to make all resources in this group to generate route names like front.franchising.index
, but leave current URIs without change (i.e. not prefixing it with front/
).
I use Laravel 4.2.