Skip to content

Commit 6863e01

Browse files
committed
Fixed typo error
1 parent a1c2968 commit 6863e01

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/CrudBuilder.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ private function buildRows($columns = [])
151151
foreach ($columns as $column) {
152152
$attribute = $column['attribute'] ?? null;
153153
$type = $column['type'] ?? 'custom';
154-
$filable = false;
154+
$fillable = false;
155155
$primaryKey = false;
156156

157157
if ($attribute && !isset($column['type']) && in_array($attribute, $tableColumns)) {
@@ -161,25 +161,25 @@ private function buildRows($columns = [])
161161
}
162162
if($attribute)
163163
{
164-
$filable = $model->isFillable($attribute);
164+
$fillable = $model->isFillable($attribute);
165165
}
166166

167-
$this->fields[] = $this->mergeOptions($this->columnDefault($attribute, $type, $filable, $primaryKey), $column);
167+
$this->fields[] = $this->mergeOptions($this->columnDefault($attribute, $type, $fillable, $primaryKey), $column);
168168
}
169169
}
170170

171171
private function columnDefault(
172172
$attribute,
173173
$type = 'text',
174-
$filable = false,
174+
$fillable = false,
175175
$primaryKey = false,
176176
$sortable = false,
177177
$filter = null)
178178
{
179179
return [
180180
'attribute' => $attribute,
181181
'type' => $type,
182-
'filable' => $filable,
182+
'fillable' => $fillable,
183183
'primaryKey' => $primaryKey,
184184
'sortable' => $sortable,
185185
'filter' => $filter,
@@ -398,7 +398,7 @@ public function buildForm()
398398
$form->setErrorsEnabled($this->showFieldErrors);
399399

400400
foreach ($this->fields as $field) {
401-
if($field['filable'] && isset($field['label']))
401+
if($field['fillable'] && isset($field['label']))
402402
{
403403
$attribute = $field['attribute'];
404404
$type = $field['type'];

0 commit comments

Comments
 (0)