mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-24 17:23:54 +01:00
Fix twofaccounts count not being returned
This commit is contained in:
parent
6b96fced3d
commit
bc89760e74
@ -23,7 +23,7 @@ class UserManagerController extends Controller
|
||||
*/
|
||||
public function index(Request $request)
|
||||
{
|
||||
return UserManagerResource::collection(User::all());
|
||||
return UserManagerResource::collection(User::withCount('twofaccounts')->get());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user