feat: add user deletion functionality and fix known issues

This commit is contained in:
xboard
2025-01-25 16:57:17 +08:00
parent 1ae8deca99
commit b2e7ed44f3
10 changed files with 125 additions and 43 deletions
-13
View File
@@ -24,17 +24,4 @@ class Coupon extends Model
})->toArray();
}
public function getLimitPlanIdsAttribute($value)
{
$planIds = json_decode($value, true);
if (blank($planIds)) {
return null;
}
return collect($planIds)
->map(fn($id) => (string) $id)
->values()
->all();
}
}