where('email', mb_strtolower(trim($email))) ->where('rol_codigo', RoleCode::Admin->value) ->first(); return $admin !== null && ! $admin->locked_until?->isFuture() && Hash::check($password, $admin->getAuthPassword()); } }