public function __get($prop) { if (property_exists($this, $prop)) { return $this->{$prop}; } return $this->whereNickname($prop)->first(); }