src/Extensions/ThemeManager.php
protected function publishThemeViews(Theme $theme, $clean = true)
    {
        $target = base_path('resources/views/'.self::TARGET_DIR);
        // Skip the ordeal if theme doesn't have views
        if (! $this->filesystem->exists($theme->getViewsDirectory())) {
            return true;
        }
        // Clean views directory.
        if ($clean) {
            $clean = $this->filesystem->deleteDirectory($target) || true;
        }
        // Publish theme views.
        $published = $this->filesystem->copyDirectory($theme->getViewsDirectory(), $target);

        return $published;
    }
protected function publishThemeViews(Theme $theme, $clean = true)
    {
        $target = base_path('resources/views/'.self::TARGET_DIR);
        // Skip the ordeal if theme doesn't have views
        if (! $this->filesystem->exists($theme->getViewsDirectory())) {
            return true;
        }
        // Clean views directory.
        if ($clean) {
            $clean = $this->filesystem->deleteDirectory($target) || true;
        }
        // Publish theme views.
        $published = $this->filesystem->copyDirectory($theme->getViewsDirectory(), $target);

        return $published;
    }
Publish a themes views.
@param Theme $theme
@param bool $clean Views directory is cleaned to ensure no interference with none theme views.
@return bool