hasMany(Question::class); } public function subcategories() { return $this->hasMany(SubCategory::class); } }