pagination testing

This commit is contained in:
2019-10-28 23:54:33 -05:00
parent 9619fde4ed
commit cfaebed0fe
3 changed files with 32 additions and 5 deletions

View File

@@ -32,10 +32,16 @@ class AdminController extends Controller
$usersArr = User::orderBy('name', 'asc')->paginate(50);
foreach($usersArr as $user) {
$role = UserRole::where([
'character_id' => $user->character_id,
])->get();
$perms = UserPermission::where([
'character_id' => $user->character_id,
])->get('permission')->toArray();
//Setup the extra stuff needed
$user->role = $role;
$user->permissions = $perms;
}