update: UserGroups ENUM

This commit is contained in:
HDVinnie
2023-10-31 06:47:08 -04:00
parent 2b3e1f8747
commit 834f7f4d7a
9 changed files with 36 additions and 36 deletions
@@ -41,10 +41,10 @@ class PrivacySettingController extends Controller
$validGroups = Group::query()
->where('is_modo', '=', '0')
->where('is_admin', '=', '0')
->where('id', '!=', UserGroups::VALIDATING)
->where('id', '!=', UserGroups::PRUNED)
->where('id', '!=', UserGroups::BANNED)
->where('id', '!=', UserGroups::DISABLED)
->where('id', '!=', UserGroups::VALIDATING->value)
->where('id', '!=', UserGroups::PRUNED->value)
->where('id', '!=', UserGroups::BANNED->value)
->where('id', '!=', UserGroups::DISABLED->value)
->pluck('id');
$request->validate([
@@ -154,10 +154,10 @@ class PrivacySettingController extends Controller
'groups' => Group::query()
->where('is_modo', '=', '0')
->where('is_admin', '=', '0')
->where('id', '!=', UserGroups::VALIDATING)
->where('id', '!=', UserGroups::PRUNED)
->where('id', '!=', UserGroups::BANNED)
->where('id', '!=', UserGroups::DISABLED)
->where('id', '!=', UserGroups::VALIDATING->value)
->where('id', '!=', UserGroups::PRUNED->value)
->where('id', '!=', UserGroups::BANNED->value)
->where('id', '!=', UserGroups::DISABLED->value)
->latest('level')
->get(),
]);