public function delete() { foreach ($this->replies as $reply) { $reply->delete(); } $this->notifications()->delete(); return parent::delete(); }
public function delete() { foreach ($this->replies as $reply) { $reply->delete(); } Content::where('id', $this->content_id)->decrement('comments_count'); return parent::delete(); }
public function delete() { $this->deleteAvatar(); $this->deleteStyle(); return parent::delete(); }
public function delete() { Content::where('id', $this->content_id)->decrement('related_count'); return parent::delete(); }