From: Louis Jeckel Date: Thu, 13 May 2021 14:29:05 +0000 (+0200) Subject: add address to account X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=dc3d382f029a22a5cd0a652207939a99b96ac246;p=psq.git add address to account --- diff --git a/app/User.php b/app/User.php index 735b780..2cbe0e3 100644 --- a/app/User.php +++ b/app/User.php @@ -650,6 +650,9 @@ class User extends Authenticatable implements MustVerifyEmail, SendsEmails public function getFullAddressAttribute(): string { + if(empty($this->address_line_1)) { + return ""; + } return "$this->address_line_1, $this->postal_code $this->city $this->country"; }