diff --git a/src/Laracasts/Presenter/Presenter.php b/src/Laracasts/Presenter/Presenter.php index 54c4cb7..c4c46b7 100644 --- a/src/Laracasts/Presenter/Presenter.php +++ b/src/Laracasts/Presenter/Presenter.php @@ -31,4 +31,16 @@ public function __get($property) return $this->entity->{$property}; } -} \ No newline at end of file + + /** + * Provide compatibility for the 'or' syntax in Blade templates + * + * @param $property + * @return boolean + */ + public function __isset($property) + { + return method_exists($this, $property); + } + +}