]> _ Git - psq.git/commitdiff
add address to account
authorLouis Jeckel <louis.jeckel@outlook.com>
Thu, 13 May 2021 14:29:05 +0000 (16:29 +0200)
committerLouis Jeckel <louis.jeckel@outlook.com>
Thu, 13 May 2021 14:29:05 +0000 (16:29 +0200)
app/User.php

index 735b780a342bc3e6139c19a9c1a200b4d14e8a4f..2cbe0e33eab2770e3e6ac8543158efe0e9d27cc8 100644 (file)
@@ -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";
     }