src/Core/ThemeManager.php
public function views(array $paths = [])
    {
        if (! $this->app->has('view')) {
            return $this;
        }

        if (empty($paths)) {
            return $this;
        }

        $factory = $this->app->make('view');
        $twigLoader = $this->app->make('twig.loader');

        foreach ($paths as $path) {
            $uri = $this->dirPath.'/'.trim($path, '\/');
            $factory->getFinder()->prependLocation($uri);
            $twigLoader->addPath($uri);
        }

        return $this;
    }
public function views(array $paths = [])
    {
        if (! $this->app->has('view')) {
            return $this;
        }

        if (empty($paths)) {
            return $this;
        }

        $factory = $this->app->make('view');
        $twigLoader = $this->app->make('twig.loader');

        foreach ($paths as $path) {
            $uri = $this->dirPath.'/'.trim($path, '\/');
            $factory->getFinder()->prependLocation($uri);
            $twigLoader->addPath($uri);
        }

        return $this;
    }
public function views ( array $ paths = [ ] ) { if ( ! $ this -> app -> has ( 'view' ) ) { return $ this ; } if ( empty ( $ paths ) ) { return $ this ; } $ factory = $ this -> app -> make ( 'view' ) ; $ twigLoader = $ this -> app -> make ( 'twig.loader' ) ; foreach ( $ paths as $ path ) { $ uri = $ this -> dirPath . '/' . trim ( $ path , '\/' ) ; $ factory -> getFinder ( ) -> prependLocation ( $ uri ) ; $ twigLoader -> addPath ( $ uri ) ; } return $ this ; }
Register theme views path.

@param array $paths

@return $this
Register theme views path .