1
0
mirror of https://github.com/flarum/core.git synced 2025-10-20 19:27:14 +02:00

Add delete avatar action

This commit is contained in:
Toby Zerner
2015-05-03 12:05:18 +09:30
parent 29be20c91a
commit b38878da80
7 changed files with 143 additions and 14 deletions

View File

@@ -47,6 +47,8 @@ class UploadAvatarCommandHandler
'target' => $this->uploadDir,
]);
// @todo delete old avatar
$user->changeAvatarPath($uploadName);
event(new AvatarWillBeUploaded($user, $command));