Providers/SettingServiceProvider.php
public function registerViews()
    {
        $viewPath = resource_path('views/modules/setting');

        $sourcePath = __DIR__ . '/../Resources/views';

        $this->publishes([
            $sourcePath => $viewPath
        ]);

        $this->loadViewsFrom(array_merge(array_map(function ($path) {
            return $path . '/modules/setting';
        }, config('view.paths')), [$sourcePath]), 'setting');
    }
public function registerViews()
    {
        $viewPath = resource_path('views/modules/setting');

        $sourcePath = __DIR__ . '/../Resources/views';

        $this->publishes([
            $sourcePath => $viewPath
        ]);

        $this->loadViewsFrom(array_merge(array_map(function ($path) {
            return $path . '/modules/setting';
        }, config('view.paths')), [$sourcePath]), 'setting');
    }
Register views.

@return void