protected function registerViewPaths()
 {
     $view = $this->app->make('view');
     foreach ($this->fs->directories(resources_path('views')) as $dir) {
         $ns = Path::getDirectoryName($dir);
         $view->addNamespace($ns, $dir);
     }
 }
Example #2
0
 /**
  * Get a YAML file's parsed content
  *
  * @param  string  $path
  * @return array
  */
 protected function getYaml($path)
 {
     return Yaml::parse($this->files->get($path));
 }