@@ -70,9 +70,9 @@ public function __construct($name, $fields, $attribute = null, $resolveCallback
70
70
71
71
$ this ->fields = collect ();
72
72
73
- foreach ($ fields as $ field ) {
74
- if ($ field instanceOf Panel){
75
- collect ($ field ->data )->each (function ($ f ) {
73
+ foreach ($ fields as $ field ) {
74
+ if ($ field instanceof Panel) {
75
+ collect ($ field ->data )->each (function ($ f ) {
76
76
$ this ->fields ->push ($ f );
77
77
});
78
78
} else {
@@ -95,18 +95,6 @@ public function panelTitleClasses($classes)
95
95
return $ this ;
96
96
}
97
97
98
- /**
99
- * Whether the field should be shown on the index.
100
- *
101
- * @return $this
102
- */
103
- public function showOnIndex ()
104
- {
105
- $ this ->showOnIndex = true ;
106
-
107
- return $ this ;
108
- }
109
-
110
98
/**
111
99
* Resolve the field's value.
112
100
*
@@ -153,7 +141,7 @@ public function resolve($resource, $attribute = null)
153
141
protected function fillAttributeFromRequest (NovaRequest $ request , $ requestAttribute , $ model , $ attribute )
154
142
{
155
143
$ this ->fields ->each (function ($ field ) use ($ request , $ model , $ attribute ) {
156
- $ field ->fillInto ($ request , $ model , $ attribute. '-> ' . $ field ->attribute , $ attribute. '. ' . $ field ->attribute );
144
+ $ field ->fillInto ($ request , $ model , $ attribute . '-> ' . $ field ->attribute , $ attribute . '. ' . $ field ->attribute );
157
145
});
158
146
}
159
147
0 commit comments