list dokter, list RS
This commit is contained in:
@@ -19,6 +19,21 @@ class PractitionerRole extends Model
|
||||
'active',
|
||||
];
|
||||
|
||||
public $appends = [
|
||||
'meta'
|
||||
];
|
||||
|
||||
public function getMetaAttribute()
|
||||
{
|
||||
$orgMeta = [];
|
||||
foreach ($this->metas as $meta) {
|
||||
$orgMeta[$meta->type] = $meta->value;
|
||||
}
|
||||
|
||||
return (object) $orgMeta;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Scope a query to only include active data.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user