public function getTagsByPropositionId($propositionId) { return Tags::join('propositions_tags', 'propositions_tags.tag_id', '=', 'tags.id')->join('propositions', 'propositions.propositionId', '=', 'propositions_tags.proposition_id')->where('propositions.propositionId', '=', $propositionId)->get(); }