src/Cuztom.php
public static function view($view, $variables = [])
    {
        extract($variables);

        ob_start();

        include dirname(dirname(__FILE__)).'/resources/views/'.$view.'.php';

        return ob_get_clean();
    }
public static function view($view, $variables = [])
    {
        extract($variables);

        ob_start();

        include dirname(dirname(__FILE__)).'/resources/views/'.$view.'.php';

        return ob_get_clean();
    }
public static function view ( $ view , $ variables = [ ] ) { extract ( $ variables ) ; ob_start ( ) ; include dirname ( dirname ( __FILE__ ) ) . '/resources/views/' . $ view . '.php' ; return ob_get_clean ( ) ; }
Include view file.

@param string $view
@param array  $variables
Include view file .