lib/View.php
public static function render($template, $data = [])
    {
        // @var \Illuminate\View\Factory $factory
        $factory = self::instance()->view();

        // @var \Illuminate\Contracts\View\View $view
        $view = $factory->make($template, $data);

        return $view->render();
    }
public static function render($template, $data = [])
    {
        // @var \Illuminate\View\Factory $factory
        $factory = self::instance()->view();

        // @var \Illuminate\Contracts\View\View $view
        $view = $factory->make($template, $data);

        return $view->render();
    }
public static function render ( $ template , $ data = [ ] ) { // @var \Illuminate\View\Factory $factory $ factory = self :: instance ( ) -> view ( ) ; // @var \Illuminate\Contracts\View\View $view $ view = $ factory -> make ( $ template , $ data ) ; return $ view -> render ( ) ; }
Render Blade template file with Data

@param string $template Relative path to a ".blade.php" file
@param array  $data     Associative array of variables names and values.

@return string HTML string
Render Blade template file with Data