transformDatatables($array, $total); } public function transformCustomField (CustomField $field) { $array = [ 'name' => e($field->name), 'db_column_name' => e($field->db_column_name()), 'format' => e($field->format), 'required' => $field->pivot->required, 'created_at' => Helper::getFormattedDateObject($field->created_at, 'datetime'), 'updated_at' => Helper::getFormattedDateObject($field->updated_at, 'datetime'), ]; return $array; } }