@@ -151,7 +151,7 @@ private function buildRows($columns = [])
151
151
foreach ($ columns as $ column ) {
152
152
$ attribute = $ column ['attribute ' ] ?? null ;
153
153
$ type = $ column ['type ' ] ?? 'custom ' ;
154
- $ filable = false ;
154
+ $ fillable = false ;
155
155
$ primaryKey = false ;
156
156
157
157
if ($ attribute && !isset ($ column ['type ' ]) && in_array ($ attribute , $ tableColumns )) {
@@ -161,25 +161,25 @@ private function buildRows($columns = [])
161
161
}
162
162
if ($ attribute )
163
163
{
164
- $ filable = $ model ->isFillable ($ attribute );
164
+ $ fillable = $ model ->isFillable ($ attribute );
165
165
}
166
166
167
- $ this ->fields [] = $ this ->mergeOptions ($ this ->columnDefault ($ attribute , $ type , $ filable , $ primaryKey ), $ column );
167
+ $ this ->fields [] = $ this ->mergeOptions ($ this ->columnDefault ($ attribute , $ type , $ fillable , $ primaryKey ), $ column );
168
168
}
169
169
}
170
170
171
171
private function columnDefault (
172
172
$ attribute ,
173
173
$ type = 'text ' ,
174
- $ filable = false ,
174
+ $ fillable = false ,
175
175
$ primaryKey = false ,
176
176
$ sortable = false ,
177
177
$ filter = null )
178
178
{
179
179
return [
180
180
'attribute ' => $ attribute ,
181
181
'type ' => $ type ,
182
- 'filable ' => $ filable ,
182
+ 'fillable ' => $ fillable ,
183
183
'primaryKey ' => $ primaryKey ,
184
184
'sortable ' => $ sortable ,
185
185
'filter ' => $ filter ,
@@ -398,7 +398,7 @@ public function buildForm()
398
398
$ form ->setErrorsEnabled ($ this ->showFieldErrors );
399
399
400
400
foreach ($ this ->fields as $ field ) {
401
- if ($ field ['filable ' ] && isset ($ field ['label ' ]))
401
+ if ($ field ['fillable ' ] && isset ($ field ['label ' ]))
402
402
{
403
403
$ attribute = $ field ['attribute ' ];
404
404
$ type = $ field ['type ' ];
0 commit comments