<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;

class Course extends Model {
    protected $fillable = ['title','description','banner_image'];
    public function sessions(){ return $this->hasMany(CourseSession::class)->orderBy('order'); }
}
