It doesn't do that already? If you have a prefix of admin, the route name would be admin.elements.index
Print your routes so far?
So I have a bunch of routes in a prefix group like so:
Route::group(['before' => 'core_auth', 'prefix' => Config::get('core::core.prefix')], function(){
Route::get('/', ['as' => 'core.home', 'uses' => 'Ngine\Core\Controllers\Admin\Home@showHomepage']);
// Elements routes
Route::resource('elements', 'Ngine\Core\Controllers\Admin\Elements');
});
The naming of the routes then varies based on the prefix. How could I have the same naming of the routes regardless of the prefix of the group. This mainly goes for Route::resource.
For example the name of a resource route could be admin.elements.index or only elements.index if I lose the prefix.
Any ideas?
Please or to participate in this conversation.