You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
virt/web/app/Models/UserSurveyOption.php

20 lines
403 B
PHP

<?php
namespace App\Models;
class UserSurveyOption extends Model
{
protected $connection = "default";
protected $table = "user_survey_options";
public function question()
{
return $this->belongsTo(UserSurveyQuestion::class, 'question_id', 'id');
}
public function responses()
{
return $this->hasMany(UserSurveyResponse::class, 'option_id', 'id');
}
}