fix: robustly handle string NULL in avatar accessor
This commit is contained in:
+1
-1
@@ -77,7 +77,7 @@ class User extends Authenticatable
|
||||
*/
|
||||
public function getAvatarAttribute($value)
|
||||
{
|
||||
if (!$value) {
|
||||
if (!$value || strtolower($value) === 'null') {
|
||||
return asset('images/avatar.png');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user