'integer', 'has_yes' => 'boolean', 'has_no' => 'boolean', 'has_na' => 'boolean', 'sort_order' => 'integer', 'is_scored' => 'boolean', ]; } /** * Get the question group that owns this question. */ public function questionGroup(): BelongsTo { return $this->belongsTo(QuestionGroup::class); } /** * Get all answers for this question. */ public function answers(): HasMany { return $this->hasMany(Answer::class); } }