belongsTo(Exercise::class, 'exercise_id'); } public function questions() { return $this->hasMany(Question::class, 'group_id'); } }