src/Theme.php
public function load($view, $args = array())
    {
        $view = ltrim($view, '/');

        $segments = explode('/', str_replace('.', '/', $view));

        // Pop file from segments.
        $view = array_pop($segments);

        // Custom directory path.
        $pathOfView = app('path.base').'/'.implode('/', $segments);

        // Add temporary path with a hint type.
        $this->view->addNamespace('custom', $pathOfView);

        return $this->of('custom::'.$view, $args);
    }
public function load($view, $args = array())
    {
        $view = ltrim($view, '/');

        $segments = explode('/', str_replace('.', '/', $view));

        // Pop file from segments.
        $view = array_pop($segments);

        // Custom directory path.
        $pathOfView = app('path.base').'/'.implode('/', $segments);

        // Add temporary path with a hint type.
        $this->view->addNamespace('custom', $pathOfView);

        return $this->of('custom::'.$view, $args);
    }
public function load ( $ view , $ args = array ( ) ) { $ view = ltrim ( $ view , '/' ) ; $ segments = explode ( '/' , str_replace ( '.' , '/' , $ view ) ) ; // Pop file from segments. $ view = array_pop ( $ segments ) ; // Custom directory path. $ pathOfView = app ( 'path.base' ) . '/' . implode ( '/' , $ segments ) ; // Add temporary path with a hint type. $ this -> view -> addNamespace ( 'custom' , $ pathOfView ) ; return $ this -> of ( 'custom::' . $ view , $ args ) ; }
Load subview from direct path.

@param  string $view
@param  array  $args
@return Theme
Load subview from direct path .