%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/forge/api-takeaseat.eco-n-tech.co.uk/app/Models/
Upload File :
Create Path :
Current File : //home/forge/api-takeaseat.eco-n-tech.co.uk/app/Models/Question.php

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Question extends Model
{
    use HasFactory;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'question',
        'question_type',
        'section_id'
    ];

    /**
     * @var array
     */
    const SECTIONS = [
        1 => 'Getting To Know you',
        2 => 'Finally'
    ];

    /**
     * @var array
     */
    const QUESTION_TYPES = [
        1 => 'Text Input',
        2 => 'Textarea'
    ];

    /**
     * Get the question answers
     */
    public function answers()
    {
        return $this->hasMany(TherapistQuestion::class, 'question_id', 'id');
    }
}

Zerion Mini Shell 1.0