Set TwoFAccount controller to return an ordered collection

This commit is contained in:
Bubka 2020-03-25 22:05:11 +01:00
parent 2295613263
commit a70606d57d

View File

@ -17,7 +17,7 @@ class TwoFAccountController extends Controller
*/ */
public function index() public function index()
{ {
return response()->json(TwoFAccount::all()->toArray()); return response()->json(TwoFAccount::ordered()->get()->toArray());
} }