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'); } }