Current Path : /home/lentoinv/api.lentoria.com/app/Models/ |
Current File : //home/lentoinv/api.lentoria.com/app/Models/Faq.php |
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Faq extends Model { use HasFactory; protected $fillable = [ 'course_id', 'question', 'answer' ]; function course() { return $this->belongsTo(Course::class, 'course_id'); } }