Skip to content

Commit

Permalink
add helper method: render()
Browse files Browse the repository at this point in the history
  • Loading branch information
uyab committed Dec 5, 2015
1 parent 1f20be9 commit 7a5e887
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,17 @@ function sui_pagination($collection)
return new \Laravolt\Support\Pagination\SemanticUiPagination($collection);
}
}

if (!function_exists('render')) {

/**
* @param null $view
* @param array $data
* @param array $mergeData
* @return string
*/
function render($view = null, $data = [], $mergeData = [])
{
return view($view, $data, $mergeData)->render();
}
}

0 comments on commit 7a5e887

Please sign in to comment.