update user fetch

This commit is contained in:
Tokumeikoi 2020-02-15 23:16:44 +08:00
parent 0a58930619
commit ab8da6bb02

View File

@ -21,6 +21,9 @@ class UserController extends Controller
if ($request->input('email')) {
$userModel->where('email', $request->input('email'));
}
if ($request->input('invite_user_id')) {
$userModel->where('invite_user_id', $request->input('invite_user_id'));
}
$total = $userModel->count();
$res = $userModel->forPage($current, $pageSize)
->get();