Your IP : 18.191.189.119


Current Path : /home/lentoinv/api.lentoria.com/app/Models/
Upload File :
Current File : //home/lentoinv/api.lentoria.com/app/Models/Lecture.php

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\Material;

class Lecture extends Model
{
    use HasFactory;

    protected $fillable = [
        'section_id', 'title', 'description', 'main_content', 'order', 'duration', 'image', 'code', 'text',
    ];

    public function materials()
    {
        return $this->hasMany(Material::class);
    }

    function section()
    {
        return $this->belongsTo(Section::class);
    }
}

?>