belongsToMany('\App\Models\Event'); } /** * The type associated with the question. * * @access public * @return \Illuminate\Database\Eloquent\Relations\HasOne */ public function question_type() { return $this->belongsTo('\App\Models\QuestionType'); } public function answers() { return $this->hasMany('\App\Models\QuestionAnswer'); } /** * The options associated with the question. * * @access public * @return \Illuminate\Database\Eloquent\Relations\HasOne */ public function options() { return $this->hasMany('\App\Models\QuestionOption'); } public function tickets() { return $this->belongsToMany('\App\Models\Ticket'); } }