Many to Many to MorphToMany Relationships
问题 I have an Exam , Question and Tag (Spatie/laravel-tags package) models. An Exam consists of many Questions (Many to Many), and Question has many Tags (MorphToMany). I would like to have a method on the Exam model to get all the tags of Exam through its associated questions, such that $exams→tags() returns all the tags from associated questions belonging to the exam. Can anyone point me towards what may be the best course to take in order to achieve this? 回答1: If you have proper described