View.php
public function render($view, $data = [])
    {
        $this->writeFile($view);
        $blade = new Blade($this->getViewPath(), $this->getCachePath());

        if (is_array($data)) {
            return $blade->view()->make($view, $data)->render();
        } else {
            throw new Exception('data pass into view must be an array.');
        }
    }
public function render($view, $data = [])
    {
        $this->writeFile($view);
        $blade = new Blade($this->getViewPath(), $this->getCachePath());

        if (is_array($data)) {
            return $blade->view()->make($view, $data)->render();
        } else {
            throw new Exception('data pass into view must be an array.');
        }
    }
public function render ( $ view , $ data = [ ] ) { $ this -> writeFile ( $ view ) ; $ blade = new Blade ( $ this -> getViewPath ( ) , $ this -> getCachePath ( ) ) ; if ( is_array ( $ data ) ) { return $ blade -> view ( ) -> make ( $ view , $ data ) -> render ( ) ; } else { throw new Exception ( 'data pass into view must be an array.' ) ; } }
return blade template

@param  string $view view name
@param  array  $data data pass to view
@return string
return blade template