diff --git a/src/Concerns/HasMedia.php b/src/Concerns/HasMedia.php index aabac34..04fba95 100644 --- a/src/Concerns/HasMedia.php +++ b/src/Concerns/HasMedia.php @@ -55,7 +55,11 @@ public static function bootHasMedia() */ public function media(): MorphMany { - return $this->morphMany(config('media.model'), 'model')->chaperone(); + return $this + ->morphMany(config('media.model'), 'model') + ->chaperone() + ->orderByRaw('-order_column DESC') + ->orderBy('id', 'asc'); } /**