public function revision() { if ($this->revision) { return $this->revision; } return WikiRevision::find($this->revision_id); }