model = $model; } public function __get($property) { if( method_exists($this, $property)) { return $this->{$property}(); } return e($this->model->{$property}); } public function __call($method, $args) { return $this->model->$method($args); } }