From 36b53166cba8ec7c563b803b7af601eec25c4431 Mon Sep 17 00:00:00 2001 From: AndresC1 Date: Sat, 20 Jul 2024 22:15:13 -0600 Subject: [PATCH] feat: Orden de backups por fecha de creacion --- app/Http/Controllers/BackupController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/BackupController.php b/app/Http/Controllers/BackupController.php index b7e40fc..2f6b63c 100644 --- a/app/Http/Controllers/BackupController.php +++ b/app/Http/Controllers/BackupController.php @@ -58,7 +58,9 @@ function downloadBackup(ImportBackupRequest $request) function listBackups() { - $backups = Backup::Where('deleted_at', null)->get(); + $backups = Backup::Where('deleted_at', null) + ->orderBy('created_at', 'desc') + ->get(); return response()->json([ 'backups' => $backups,