芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/www/vendor/laravel/jetstream/stubs/app/Actions/Jetstream/DeleteUserWithTeams.php
deletesTeams = $deletesTeams; } /** * Delete the given user. * * @param mixed $user * @return void */ public function delete($user) { DB::transaction(function () use ($user) { $this->deleteTeams($user); $user->deleteProfilePhoto(); $user->tokens->each->delete(); $user->delete(); }); } /** * Delete the teams and team associations attached to the user. * * @param mixed $user * @return void */ protected function deleteTeams($user) { $user->teams()->detach(); $user->ownedTeams->each(function ($team) { $this->deletesTeams->delete($team); }); } }