Adds the view directories defined in $viewDirs to the publish procedure.
Can be overriden to adjust default functionality
11194
protected function bootViews()
    {
        if (isset($this->dir) and isset($this->viewDirs) and is_array($this->viewDirs)) {
            foreach ($this->viewDirs as $dirName => $namespace) {
                $viewPath             = $this->getViewsPath($dirName);
                $viewsDestinationPath = Str::replace($this->viewsDestinationPath, '{namespace}', $namespace);
                $this->loadViewsFrom($viewPath, $namespace);
                $this->publishes([ $viewPath => base_path($viewsDestinationPath) ], 'views');
            }
        }
    }
42257
private function publishFiles()
	{
		if ($this->isLaravel5())
		{
			#CONFIG
			if (file_exists($configFile = $this->__DIR__.'/../../../config/config.php'))
			{
				$publish_path = 'config/vendor/'.$this->packageNameSpace.DIRECTORY_SEPARATOR.'config.php';
				$this->publishes([$configFile => base_path($publish_path) ],'config');
			}
			else
			{
				if (file_exists($configFile = $this->__DIR__.'/config/config.php'))
				{
					$publish_path = 'config/vendor/'.$this->packageNameSpace.DIRECTORY_SEPARATOR.'config.php';
					$this->publishes([$configFile => base_path($publish_path) ],'config');
				}
			}
			#VIEWS
			if (file_exists($viewsPath = $this->__DIR__.'/../../../resources/views/'))
			{
				$publish_path = 'resources/views/vendor/'.$this->packageNameSpace;
				$this->publishes([$viewsPath => base_path($publish_path) ],'views');
			}
			else
			{
				if (file_exists($viewsPath = $this->__DIR__.'/resources/views/'))
				{
					$publish_path = 'resources/views/vendor/'.$this->packageNameSpace;
					$this->publishes([$viewsPath => base_path($publish_path) ],'views');
				}
			}
			#LANGUAGES
			if (file_exists($langsPath = $this->__DIR__.'/../../../resources/lang/'))
			{
				$publish_path = 'resources/lang/vendor/'.$this->packageNameSpace;
				$this->publishes([$langsPath => base_path($publish_path) ],'langs');
			}
			else
			{
				if (file_exists($langsPath = $this->__DIR__.'/resources/lang/'))
				{
					$publish_path = 'resources/lang/vendor/'.$this->packageNameSpace;
					$this->publishes([$langsPath => base_path($publish_path) ],'langs');
				}
			}
			#ASSETS
			if (file_exists($assetsPath = $this->__DIR__.'/../../../resources/assets/'))
			{
				$publish_path = 'resources/assets/vendor/'.$this->packageNameSpace;
				$this->publishes([$assetsPath => base_path($publish_path) ],'assets');
			}
			else
			{
				if (file_exists($assetsPath = $this->__DIR__.'/resources/assets/'))
				{
					$publish_path = 'resources/assets/vendor/'.$this->packageNameSpace;
					$this->publishes([$assetsPath => base_path($publish_path) ],'assets');
				}
			}
			#MIGRATIONS
			if (file_exists($migrationsPath = $this->__DIR__.'/../../../migrations/'))
			{
				$publish_path = 'database/migrations/vendor/'.$this->packageNameSpace;
				$this->publishes([$migrationsPath => base_path($publish_path) ],'migrations');
			}
			else
			{
				if (file_exists($migrationsPath = $this->__DIR__.'/../../../migrations/'))
				{
					$publish_path = 'database/migrations/vendor/'.$this->packageNameSpace;
					$this->publishes([$migrationsPath => base_path($publish_path) ],'migrations');
				}
			}
			#SEEDS
			if (file_exists($seedsPath = $this->__DIR__.'/../../../seeds/'))
			{
				$publish_path = 'database/seeds/vendor/'.$this->packageNameSpace;
				$this->publishes([$seedsPath => base_path($publish_path) ],'seeds');
			}
			else
			{
				if (file_exists($seedsPath = $this->__DIR__.'/seeds/'))
				{
					$publish_path = 'database/seeds/vendor/'.$this->packageNameSpace;
					$this->publishes([$seedsPath => base_path($publish_path) ],'seeds');
				}
			}
		}
	}
274910
def _add_admin_views(self):
        
        self.indexview = self._check_and_init(self.indexview)
        self.add_view_no_menu(self.indexview)
        self.add_view_no_menu(UtilView())
        self.bm.register_views()
        if self.get_app.config.get('FAB_ADD_SECURITY_VIEWS', True):
            self.sm.register_views()
        if self.get_app.config.get('FAB_ADD_OPENAPI_VIEWS', True):
            self.openapi_manager.register_views()
283978
public function add( $name = null ) {
		$name = $name ? $name : $this->getName();
		$path = __DIR__;
		$name = ucfirst( $name );
		include  "{$path}/Views/{$name}.php";
	}
1045315
public function publishFiles()
    {
        $this->publishes([
            __DIR__ . '/../config/avored-ecommerce.php' => config_path('avored-ecommerce.php'),
        ], 'config');
        $this->publishes([
            __DIR__ . '/../config/avored-auth.php' => config_path('avored-auth.php'),
        ], 'config');

        $this->publishes([
            __DIR__ . '/../resources/lang' => base_path('themes/avored/default/lang/vendor')
        ], 'avored-module-lang');

        $this->publishes([
            __DIR__ . '/../resources/views' => base_path('themes/avored/default/views/vendor')
        ], 'avored-module-views');
        $this->publishes([
            __DIR__ . '/../database/migrations' => database_path('avored-migrations'),
        ]);
    }
767267
protected function exportViews()
    {
        foreach ($this->views as $pathIn => $pathOut) {
            if ($this->files->exists($view = resource_path('views/'.$pathOut)) && ! $this->option('force')) {
                if (! $this->confirm("The [{$pathOut}] view already exists. Do you want to overwrite it?")) {
                    continue;
                }
            }

            $this->files->copy(
                __DIR__.'/stubs/make/views/'.$pathIn,
                $view
            );
        }
    }
1271578
protected function exportViews()
    {
        foreach ($this->views as $key => $value) {
            $path = base_path('resources/views/'.$value);

            $this->line('<info>Created View:</info> '.$path);

            copy(__DIR__.'/stubs/make/views/'.$key, $path);
        }
    }
986913
function (urlpath, dirs) {
    dirs.forEach(function (val, idx) {
        redirectTo(urlpath, false);
        addDeepDir(urlpath, val);
    });
}
531914
protected function publishResources(): void
    {
        $this->publishes([realpath(__DIR__.'/../../database/migrations') => database_path('migrations')], 'cortex-contacts-migrations');
        $this->publishes([realpath(__DIR__.'/../../resources/lang') => resource_path('lang/vendor/cortex/contacts')], 'cortex-contacts-lang');
        $this->publishes([realpath(__DIR__.'/../../resources/views') => resource_path('views/vendor/cortex/contacts')], 'cortex-contacts-views');
    }
1007815
private function publishModule()
    {
        $from = base_path('vendor/typicms/'.$this->module.'/src');
        $to = base_path('Modules/'.ucfirst($this->module));

        if ($this->files->isDirectory($from)) {
            $this->publishDirectory($from, $to);
        } else {
            $this->error("Can’t locate path: <{$from}>");
        }

        $this->info('Publishing complete for module ['.ucfirst($this->module).']!');
    }
856374
public function addViewsPaths()
    {
        foreach($this->activePlugins() as $plugin){
            view()->addNamespace($plugin->namespaceWithDot(), $plugin->viewsPath());
        }
        return;
    }
954104
protected function publishViews($load = true)
    {
        $this->publishes([
            $this->getViewsPath() => $this->getViewsDestinationPath()
        ], 'views');

        if ($load) $this->loadViews();
    }
1202405
private function getViewsFromModule(array $views)
	{
		foreach ($views as $key => $path)
			$this->views[$key] = $path;
	}
78470
protected function makeFeatureDirectories()
    {
        File::makeDirectories([$this->basePath,
                               $this->basePath.'/Twinkles',
                               $this->basePath.'/Panels',
                               $this->basePath.'/Controllers', ]);
    }
1031164
protected function registerViewPublisher(): void
    {
        $this->app->singleton('view.publisher', function (Application $app) {
            $viewPath = $app->basePath().'/resources/views';

            // Once we have created the view publisher, we will set the default packages
            // path on this object so that it knows where to find all of the packages
            // that are installed for the application and can move them to the app.
            $publisher = new View($app->make('files'), $viewPath);

            $publisher->setPackagePath($app->basePath().'/vendor');

            return $publisher;
        });
    }
1115618
public function addLayoutDir($new_dir, $position = 0)
    {
        if (true === file_exists($new_dir) && true === is_dir($new_dir)) {
            $this->insertInArrayOnPostion($this->_layoutdir, $new_dir, $position);
        }

        return $this;
    }
772500
protected function createDirectories()
    {
        if (! is_dir(app_path('Http/Controllers/Teamwork'))) {
            mkdir(app_path('Http/Controllers/Teamwork'), 0755, true);
        }
        if (! is_dir(app_path('Listeners/Teamwork'))) {
            mkdir(app_path('Listeners/Teamwork'), 0755, true);
        }
        if (! is_dir(base_path('resources/views/teamwork'))) {
            mkdir(base_path('resources/views/teamwork'), 0755, true);
        }
        if (! is_dir(base_path('resources/views/teamwork/emails'))) {
            mkdir(base_path('resources/views/teamwork/emails'), 0755, true);
        }
        if (! is_dir(base_path('resources/views/teamwork/members'))) {
            mkdir(base_path('resources/views/teamwork/members'), 0755, true);
        }
    }