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