From a70606d57d2d4ef26b20ff81eecef7d25dbbfc76 Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Wed, 25 Mar 2020 22:05:11 +0100 Subject: [PATCH] Set TwoFAccount controller to return an ordered collection --- app/Http/Controllers/TwoFAccountController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/TwoFAccountController.php b/app/Http/Controllers/TwoFAccountController.php index 949a637f..d8e0f67f 100644 --- a/app/Http/Controllers/TwoFAccountController.php +++ b/app/Http/Controllers/TwoFAccountController.php @@ -17,7 +17,7 @@ class TwoFAccountController extends Controller */ public function index() { - return response()->json(TwoFAccount::all()->toArray()); + return response()->json(TwoFAccount::ordered()->get()->toArray()); }