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;
    }