Make sure user and acars data is sent from API
This commit is contained in:
@@ -14,6 +14,7 @@ use Illuminate\Support\Collection;
|
||||
|
||||
/**
|
||||
* @property string id
|
||||
* @property string ident
|
||||
* @property string flight_number
|
||||
* @property string route_code
|
||||
* @property string route_leg
|
||||
|
||||
@@ -170,6 +170,16 @@ class User extends Authenticatable
|
||||
return $uri;
|
||||
}
|
||||
|
||||
public function resolveAvatarUrl()
|
||||
{
|
||||
$avatar = $this->getAvatarAttribute();
|
||||
if (empty($avatar)) {
|
||||
return $this->gravatar();
|
||||
} else {
|
||||
return $avatar->url;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Foreign Keys
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user