From 5f50dc8f2e581369ad248c296113ed7282d7169e Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Mon, 8 Aug 2022 12:53:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=BD=E5=8A=A0=E6=8E=92=E5=BA=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/Programs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Programs.php b/app/Models/Programs.php index 646608d..6f4cb3a 100644 --- a/app/Models/Programs.php +++ b/app/Models/Programs.php @@ -10,7 +10,7 @@ class Programs extends Model protected $dateFormat = 'U'; public function appends(): \Illuminate\Database\Eloquent\Relations\HasMany { - return $this->hasMany(ProgramAppends::class, "program_id", "id")->orderByDesc("is_original"); + return $this->hasMany(ProgramAppends::class, "program_id", "id")->orderByDesc("is_original")->orderBy("created_at"); } public function video_pivots(): \Illuminate\Database\Eloquent\Relations\HasMany