belongsTo(Evaluacion::class); } public function tipo(): BelongsTo { return $this->belongsTo(PreguntaTipo::class, 'pregunta_tipo_id'); } public function opciones(): HasMany { return $this->hasMany(PreguntaOpcion::class)->orderBy('orden'); } public function respuestas(): HasMany { return $this->hasMany(Respuesta::class); } }