app/View.php
public static function make($name, $data = []): string
    {
        $view = new static($name, $data);

        DebugBar::addView($name, $data);

        return $view->render();
    }
public static function make($name, $data = []): string
    {
        $view = new static($name, $data);

        DebugBar::addView($name, $data);

        return $view->render();
    }
public static function make ( $ name , $ data = [ ] ) : string { $ view = new static ( $ name , $ data ) ; DebugBar :: addView ( $ name , $ data ) ; return $ view -> render ( ) ; }
Cerate and render a view in a single operation.

@param string  $name
@param mixed[] $data

@return string
Cerate and render a view in a single operation .