fix audit logs

This commit is contained in:
Daeng Deni Mardaeni 2023-08-10 21:26:20 +07:00
parent e3334e61e7
commit e379cfbe6b

View File

@ -29,10 +29,10 @@
}
if (isset($model->subject->name)) {
return $model->subject->name;
return $model->subject->name ?? $model->subject->user()->first()->name;
}
return $model->subject->user()->first()->name;
return "-";//$model->subject->user()->first()->name;
})
->editColumn('causer_id', function (Activity $model) {
return $model->causer ? $model->causer->name : __('System');