Added whether the field is required to the custom fieldsets transformer

This commit is contained in:
snipe 2017-07-12 19:23:54 -07:00
parent 3e3276334b
commit 5abe72ce02

View file

@ -20,11 +20,15 @@ class CustomFieldsTransformer
public function transformCustomField (CustomField $field)
{
$array = [
'name' => $field->name,
'db_column_name' => $field->db_column_name(),
'format' => $field->format
'format' => $field->format,
'required' => $field->pivot->required
];
return $array;
}
}