InfyOm\Generator\Commands\Publish\LayoutPublishCommand::copyView PHP Method

copyView() private method

private copyView ( )
    private function copyView()
    {
        $viewsPath = config('infyom.laravel_generator.path.views', base_path('resources/views/'));
        $templateType = config('infyom.laravel_generator.templates', 'core-templates');
        $this->createDirectories($viewsPath);
        $files = $this->getViews();
        foreach ($files as $stub => $blade) {
            $sourceFile = TemplateUtil::getTemplateFilePath('scaffold/' . $stub, $templateType);
            $destinationFile = $viewsPath . $blade;
            $this->publishFile($sourceFile, $destinationFile, $blade);
        }
    }