This commit is contained in:
saeid
2019-05-06 21:48:46 +04:30
parent 5d8500dafd
commit f6d7277ddc
14 changed files with 268 additions and 168 deletions
+5 -1
View File
@@ -6,7 +6,7 @@ use Illuminate\Database\Eloquent\Model;
class InputValue extends Model
{
public $fillable = ['value','test_result_id','input_id'];
public $fillable = ['value','test_result_id','input_id','option_id'];
public function input()
{
return $this->belongsTo('App\Input');
@@ -15,4 +15,8 @@ class InputValue extends Model
{
return $this->belongsTo('App\TestResult');
}
public function option()
{
return $this->belongsTo('App\Option');
}
}