For for deleted user API

This commit is contained in:
snipe 2020-11-18 14:57:44 -08:00
parent 57d6a7d35e
commit c66f8c04c8

View file

@ -68,7 +68,7 @@ class UsersController extends Controller
if (($request->filled('deleted')) && ($request->input('deleted')=='true')) {
$users = $users->onlyTrashed();
} elseif (($request->filled('all')) && ($request->input('deleted')=='true')) {
} elseif (($request->filled('all')) && ($request->input('all')=='true')) {
$users = $users->withTrashed();
}