/** * Updates leechers field and returns the object * * @return $this */ public function updateLeechers() { $this->leechers = count(PeerTorrent::getLeechers($this)); $this->save(); return $this; }