*/ protected $fillable = [ 'course_id', 'module_code', 'title', 'semester', 'credits', 'description', ]; /** * Get the course that owns the module. */ public function course() { return $this->belongsTo(Course::class); } }