From dc3d382f029a22a5cd0a652207939a99b96ac246 Mon Sep 17 00:00:00 2001 From: Louis Jeckel Date: Thu, 13 May 2021 16:29:05 +0200 Subject: [PATCH] add address to account --- app/User.php | 3 +++ 1 file changed, 3 insertions(+) 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"; } -- 2.39.5