Clean up attribute assignment

This commit is contained in:
Toby Zerner 2018-07-21 17:22:03 +09:30
parent 97a94a8c60
commit 9bc934a89d

View File

@ -277,7 +277,7 @@ class User extends AbstractModel
*/
public function changeAvatarPath($path)
{
$this->attributes['avatar_url'] = $path;
$this->avatar_url = $path;
$this->raise(new AvatarChanged($this));