Skip to content

Commit

Permalink
feat: Orden de backups por fecha de creacion
Browse files Browse the repository at this point in the history
  • Loading branch information
AndresC1 committed Jul 21, 2024
1 parent b9722dc commit 36b5316
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Http/Controllers/BackupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 36b5316

Please sign in to comment.