changing the User model attribute for last name, first name
This commit is contained in:
parent
28a7b3a387
commit
962f8eb6ad
@ -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']}",
|
||||
|
Loading…
x
Reference in New Issue
Block a user