We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c35a48 commit c142856Copy full SHA for c142856
src/Commands/Generators/Views/usermodel.tpl.php
@@ -11,10 +11,11 @@ class {class} extends UserModel
11
protected function initialize(): void
12
{
13
// Merge properties with parent
14
- $this->allowedFields = array_merge($this->allowedFields, [
+ $this->allowedFields = [
15
+ ...$this->allowedFields,
16
// Add here your custom fields
17
// 'first_name',
- ]);
18
+ ];
19
}
20
21
0 commit comments