更新
This commit is contained in:
parent
feaf5eb957
commit
23cc8cc5ef
@ -73,7 +73,9 @@
|
|||||||
|
|
||||||
public function getPersonTextAttr($value, $data): string
|
public function getPersonTextAttr($value, $data): string
|
||||||
{
|
{
|
||||||
$person = Admin::where('id', 'in', json_decode($data['person'], true))->column('name');
|
if(isset($data['person']) && !empty($data['person'])){
|
||||||
|
$person = Admin::where('id', 'in', json_decode($data['person'], true))->column('name');
|
||||||
|
}
|
||||||
return !empty($person) ? implode(',', $person) : '';
|
return !empty($person) ? implode(',', $person) : '';
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user