<?php

use Illuminate\Routing\Router;

$router->group(['prefix' => '/setting'], function (Router $router) {
    $router->get('settings/{module}', ['as' => 'dashboard.module.settings', 'uses' => 'SettingController@getModuleSettings']);

    $router->resource('settings', 'SettingController', ['except' => ['show', 'edit', 'update', 'destroy', 'create'], 'names' => [
        'index' => 'admin.setting.settings.index',
        'store' => 'admin.setting.settings.store',
    ]]);
});

<?php

$router->group(['prefix' => '/setting'], function () {
    get('settings/{module}', ['as' => 'dashboard.module.settings', 'uses' => 'SettingController@getModuleSettings']);
    get('settings', ['as' => 'admin.setting.settings.index', 'uses' => 'SettingController@index']);
    post('settings', ['as' => 'admin.setting.settings.store', 'uses' => 'SettingController@store']);
});

Use manual route definition over the route resource shortcut
Use manual route definition over the route resource shortcut
