public function validate_uniqueForumThread($value, $input, $args) { return !(bool) ForumThread::where('title', $value)->count(); }
public function countForumPosts() { return ForumComment::where('author_id', $this->id)->count() + ForumThread::where('author_id', $this->id)->count(); }