From 41f4c7600655f25e44d24789cd3da3d8a887d857 Mon Sep 17 00:00:00 2001 From: Jose Miguel Bustos Espinoza Date: Mon, 30 Apr 2018 22:22:59 -0300 Subject: [PATCH] Remote getAvatarAttribue() beacuse it cause conflict with final avatar path. --- app/Models/User.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/app/Models/User.php b/app/Models/User.php index 8d6fbcf8..ed24aa81 100755 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -123,20 +123,6 @@ class User extends Authenticatable $this->attributes['timezone'] = $value; } - /** - * Return a File model - */ - public function getAvatarAttribute() - { - if (!$this->attributes['avatar']) { - return null; - } - - return new File([ - 'path' => $this->attributes['avatar'] - ]); - } - /** * @param mixed $size Size of the gravatar, in pixels * @return string