We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bece31 commit ee8112cCopy full SHA for ee8112c
src/resources/views/fields/address.blade.php
@@ -1,4 +1,14 @@
1
<!-- text input -->
2
+
3
+<?php
4
5
+// the field should work whether or not Laravel attribute casting is used
6
+if (isset($field['value']) && (is_array($field['value']) || is_object($field['value']))) {
7
+ $field['value'] = json_encode($field['value']);
8
+}
9
10
+?>
11
12
<div @include('crud::inc.field_wrapper_attributes') >
13
<label>{!! $field['label'] !!}</label>
14
0 commit comments