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']}",