This commit is contained in:
mkm 2024-05-15 11:30:09 +08:00
parent feaf5eb957
commit 23cc8cc5ef

View File

@ -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) : '';
} }
} }