changing the User model attribute for last name, first name

This commit is contained in:
Brian 2022-05-20 13:49:20 -06:00
parent 28a7b3a387
commit 962f8eb6ad
Signed by: brian
GPG Key ID: DE1A5390A3B84CD8

View File

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