fixing freedcamp bugs and fixed api issues
This commit is contained in:
@@ -58,7 +58,7 @@ class ManageSubAdminController extends Controller
|
||||
if (!$check) {
|
||||
abort(404);
|
||||
}
|
||||
$subAdmin = User::where(['role' => 2, 'status' => 1])->whereNotIn('id', [auth()->user()->id])->latest()->get();
|
||||
$subAdmin = User::where(['role' => 2, 'status' => 1])->whereNotIn('id', [auth()->user()->id])->orderBy('last_login','desc')->get();
|
||||
// $subAdmin = User::where('status', 1)->whereIn('role', ['1', '2'])->whereNotIn('id', [auth()->user()->id])->latest()->get();
|
||||
// dd($subAdmin);
|
||||
return view('Admin.sub_admin_list', ['subAdmin' => $subAdmin]);
|
||||
|
||||
Reference in New Issue
Block a user