Skip to content

Commit daf9310

Browse files
authored
use correct field function rather than column for fields
1 parent ef496d3 commit daf9310

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Console/Commands/CrudControllerBackpackCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ protected function replaceSetFromDb(&$stub, $name)
129129
$fields = Arr::except($attributes, ['id', 'created_at', 'updated_at', 'deleted_at']);
130130
$fields = collect($fields)
131131
->map(function ($field) {
132-
return "CRUD::column('$field');";
132+
return "CRUD::field('$field');";
133133
})
134134
->toArray();
135135

0 commit comments

Comments
 (0)