Skip to content

Commit

Permalink
Add View::exists to Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
luizpedone committed Jul 18, 2014
1 parent 5b3e3ac commit c27b7b7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions responses.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,16 @@ The sub-view can then be rendered from the parent view:
</body>
</html>

#### Checking if a view exists

Eventually you will need to check if a view exists in order to render it. To do it, simply use the `View::exists` method:

$view = 'emails.customer';

if (View::exists($view)) {
// render
}

<a name="view-composers"></a>
## View Composers

Expand Down

0 comments on commit c27b7b7

Please sign in to comment.