src/Load/Load.php
public function view($name, array $data = [])
    {
        $file = app_path('Views' . DIRECTORY_SEPARATOR . $name . '.php');
        if (file_exists($file)) {
            extract($data);
            require $file;
            return ob_get_clean();
        }

        throw new ExceptionHandler('Oppss! File not found.', 'View::' . $name . ' not found.');
    }
public function view($name, array $data = [])
    {
        $file = app_path('Views' . DIRECTORY_SEPARATOR . $name . '.php');
        if (file_exists($file)) {
            extract($data);
            require $file;
            return ob_get_clean();
        }

        throw new ExceptionHandler('Oppss! File not found.', 'View::' . $name . ' not found.');
    }
Load view file.

@param string $name
@param array  $data

@return mixed

@throws