From 0fe892a292321fe426b64319d2b87606068ed06c Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 27 Jul 2021 09:02:14 +1000 Subject: [PATCH] Sort order of system log --- app/Models/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Client.php b/app/Models/Client.php index f44e51c7b52c..5bbfcc8af071 100644 --- a/app/Models/Client.php +++ b/app/Models/Client.php @@ -229,7 +229,7 @@ class Client extends BaseModel implements HasLocalePreference public function system_logs() { - return $this->hasMany(SystemLog::class); + return $this->hasMany(SystemLog::class)->orderBy('id', 'desc'); } public function timezone()