mirror of
https://github.com/flarum/core.git
synced 2025-07-25 18:51:40 +02:00
Refresh avatar display after uploading
This commit is contained in:
@@ -226,6 +226,16 @@ class User extends Model
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the URL of the user's avatar.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAvatarUrlAttribute()
|
||||
{
|
||||
return $this->avatar_path ? asset('avatars/'.$this->avatar_path) : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given password matches the user's password.
|
||||
*
|
||||
|
Reference in New Issue
Block a user