[Build] Client Portal

This commit is contained in:
R
2023-02-04 08:38:46 +07:00
parent 8e05280b7d
commit 5d56434aa2
21 changed files with 63 additions and 42 deletions

View File

@@ -48,13 +48,26 @@ class User extends Authenticatable
];
public $with = [
'metas'
'metas',
'person'
];
public $appends = [
'meta'
'meta',
'avatar_url',
'full_name'
];
public function getAvatarUrlAttribute()
{
return asset('images/specialities/anak.png');
}
public function getFullNameAttribute()
{
return $this->person?->full_name;
}
public function getMetaAttribute()
{
$orgMeta = [];