From b8424f712d46b102b57d8c4e48255e10ee82f79e Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Fri, 11 May 2018 13:05:34 -0500 Subject: [PATCH] Acars log ordering --- app/Models/Pirep.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Pirep.php b/app/Models/Pirep.php index 1aaf8098..15bbf6ff 100644 --- a/app/Models/Pirep.php +++ b/app/Models/Pirep.php @@ -400,7 +400,7 @@ class Pirep extends Model { return $this->hasMany(Acars::class, 'pirep_id') ->where('type', AcarsType::LOG) - ->orderBy('created_at', 'asc'); + ->orderBy('created_at', 'desc'); } public function acars_route()