hasMany(Question::class); } public function activeQuestions() { return $this->questions()->where('active', true); } }