src/Xinix/Blade/BladeView.php
public function setLayout($layout, array $data = array())
    {
        if (is_null($layout)) {
            $this->layout = null;

            return;
        }

        $this->layout = $this->make($this->resolve($layout), $data);
    }
public function setLayout($layout, array $data = array())
    {
        if (is_null($layout)) {
            $this->layout = null;

            return;
        }

        $this->layout = $this->make($this->resolve($layout), $data);
    }
public function setLayout ( $ layout , array $ data = array ( ) ) { if ( is_null ( $ layout ) ) { $ this -> layout = null ; return ; } $ this -> layout = $ this -> make ( $ this -> resolve ( $ layout ) , $ data ) ; }
Manually set the layout

This method will output the rendered template content, so you can set the layout on the air

@param string $layout name

@return void
Manually set the layout