public function postPosition($postId) { return $this->posts()->where('post_id', '<=', $postId)->count(); }