Commit a5e9386b authored by Nicolas Widart's avatar Nicolas Widart

Renaming module settings route

parent 8ec0f7e0
......@@ -44,7 +44,7 @@ class SettingController extends AdminBaseController
return Redirect::route('dashboard.setting.index');
}
public function moduleSettings($module)
public function getModuleSettings($module)
{
dd($module . ' settings');
}
......
......@@ -3,7 +3,7 @@
$router->group(['prefix' => LaravelLocalization::setLocale(), 'before' => 'LaravelLocalizationRedirectFilter|auth.admin'], function($router) {
$router->group(['prefix' => Config::get('core::core.admin-prefix'), 'namespace' => 'Modules\Setting\Http\Controllers'], function($router)
{
$router->get('settings/{module}', ['as' => 'dashboard.module.settings', 'uses' => 'Admin\SettingController@moduleSettings']);
$router->get('settings/{module}', ['as' => 'dashboard.module.settings', 'uses' => 'Admin\SettingController@getModuleSettings']);
$router->resource('settings', 'Admin\SettingController', ['except' => ['show', 'edit', 'update', 'destroy', 'create'], 'names' => [
'index' => 'dashboard.setting.index',
'store' => 'dashboard.setting.store'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment