6
0
Fork 0

user:clear

release
panliang 2022-06-10 15:26:42 +08:00
parent b1ba1d373a
commit f4baac8378
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ class UserClear extends Command
{
$user = User::query()->findOrFail($this->argument('id'));
$user->update(['phone' => null]);
$user->tokens()->delete();
$count = $user->socialites()->where('socialite_type', SocialiteType::WechatMiniProgram->value)->delete();
$this->info($count);
return 0;