%PDF- %PDF-
Direktori : /home/forge/api-takeaseat.eco-n-tech.co.uk/app/Models/ |
Current File : //home/forge/api-takeaseat.eco-n-tech.co.uk/app/Models/TherapistQuestion.php |
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class TherapistQuestion extends Model { use HasFactory; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'therapist_id', 'question_id', 'question', 'answer' ]; /** * Get the parent question */ public function parent() { return $this->belongsTo(Question::class, 'question_id', 'id'); } /** * Get the therapist */ public function therapist() { return $this->belongsTo(Therapist::class); } }