Lint
This commit is contained in:
parent
8713f941c1
commit
c9cbf86626
|
@ -36,15 +36,14 @@ class ParticipantResource extends JsonResource
|
|||
{
|
||||
return [
|
||||
'active_columns' => $form->active_columns,
|
||||
'columns' => $form->getFields()->map(function ($field) {
|
||||
$field = Field::fromConfig($field);
|
||||
return [
|
||||
'columns' => $form->getFields()
|
||||
->map(fn ($field) => Field::fromConfig($field))
|
||||
->map(fn ($field) => [
|
||||
'name' => $field->name,
|
||||
'base_type' => class_basename($field),
|
||||
'id' => $field->key,
|
||||
'display_attribute' => $field->getdisplayAttribute(),
|
||||
];
|
||||
})
|
||||
])
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue