Skip to content

Commit 4032806

Browse files
authored
Include password field in fillable model properties (#97)
1 parent b87de46 commit 4032806

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/Generators/ModelGenerator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ private function fillableColumns(array $columns)
156156
{
157157
return array_diff(array_keys($columns), [
158158
'id',
159-
'password',
160159
'deleted_at',
161160
'created_at',
162161
'updated_at',

tests/fixtures/definitions/nested-components.bp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
models:
22
Admin/User:
33
name: string
4-
password: password
4+
password: string
55

66
controllers:
77
Admin/User:

tests/fixtures/models/nested-components.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class User extends Model
1313
*/
1414
protected $fillable = [
1515
'name',
16+
'password',
1617
];
1718

1819
/**

0 commit comments

Comments
 (0)