mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Added whether the field is required to the custom fieldsets transformer
This commit is contained in:
parent
3e3276334b
commit
5abe72ce02
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue