From 5c5eb7115442d878f298bf9eb55a5ccc75691ff5 Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Wed, 26 Nov 2025 15:45:15 +0800 Subject: [PATCH] update --- app/Models/Calendar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Calendar.php b/app/Models/Calendar.php index 2ddcef3..9cde227 100755 --- a/app/Models/Calendar.php +++ b/app/Models/Calendar.php @@ -44,7 +44,7 @@ class Calendar extends SoftDeletesModel public function historyCourses() { - return $this->hasOne(HistoryCourse::class, 'calendar_id', 'id'); + return $this->hasMany(HistoryCourse::class, 'calendar_id', 'id'); } }