/** * Add a new namespace to the loader. * * @param string $namespace * @param string|array $hints * @return void * @static */ public static function addNamespace($namespace, $hints) { \Illuminate\View\Environment::addNamespace($namespace, $hints); }
/** * Setup the pagination environment. * * @return void */ protected function setupPaginationEnvironment() { $this->view->addNamespace('pagination', __DIR__ . '/views'); }
/** * Generate the view namespace and return the true path to a theme view * * @param string $path * @return string */ private function generateNamespace($path = null, $theme = false) { $namespace = empty($theme) ? static::$namespace : static::$namespace . '-' . $theme; $this->view->addNamespace($namespace, $this->getCurrentPath($theme)); return $namespace . '::' . $path; }