From 962f8eb6ad1d4ea21767a0972794585700b2c5f4 Mon Sep 17 00:00:00 2001 From: Brian Rogers Date: Fri, 20 May 2022 13:49:20 -0600 Subject: [PATCH] changing the User model attribute for last name, first name --- src/app/Models/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/Models/User.php b/src/app/Models/User.php index 9d3981e..07b73da 100644 --- a/src/app/Models/User.php +++ b/src/app/Models/User.php @@ -64,7 +64,7 @@ class User extends Authenticatable /** @var array */ protected $appends = [ 'full_name', - 'name_full', + 'surname_full', 'profile_photo_url', ]; @@ -142,7 +142,7 @@ class User extends Authenticatable * * @return \Illuminate\Database\Eloquent\Casts\Attribute */ - public function fullNameReversed(): Attribute + public function surnameFull(): Attribute { return Attribute::make( get: fn ($value, $attributes) => "{$attributes['surname']}, {$attributes['name']}",