/** * Register view location of theme. * * @param null $theme */ public function registerViewLocation($theme = null) { if (is_null($theme)) { $theme = $this->getCurrent(); } $this->views->addLocation($this->getPath() . '/' . $theme . '/views'); }
/** * Add a location to the array of view locations. * * @param string $location * @return void * @static */ public static function addLocation($location) { \Illuminate\View\Factory::addLocation($location); }