diff --git a/laravel/helpers.php b/laravel/helpers.php index f459fe7..7507c5d 100644 --- a/laravel/helpers.php +++ b/laravel/helpers.php @@ -409,4 +409,16 @@ function with($object) function has_php($version) { return version_compare(PHP_VERSION, $version) >= 0; +} + +/** + * Render the given view. + * + * @param string $view + * @param array $data + * @return string + */ +function render($view, $data = array()) +{ + return Laravel\View::make($view, $data)->render(); } \ No newline at end of file