Attendize/app/Models/QuestionOption.php

33 lines
640 B
PHP
Raw Normal View History

<?php
namespace App\Models;
class QuestionOption extends MyBaseModel
{
/**
* Indicates if the model should be timestamped.
*
* @access public
* @var bool
*/
public $timestamps = false;
2016-09-06 20:39:27 +00:00
/**
* The attributes that are mass assignable.
*
* @access protected
* @var array
*/
protected $fillable = ['name'];
/**
* The question associated with the question option.
*
* @access public
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function question()
{
return $this->belongsTo('\App\Models\Question');
}
}