public function __get($key) { return $this->getAttribute($key); }
public function __get($key) { if ($this->isEloquent()) { return $this->data->__get($key); } return object_get($this->data, $key); }