Skip to content

Commit 5cd75ce

Browse files
committed
Add notes about models fillable property.
1 parent 5ba3c27 commit 5cd75ce

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

editor-model.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,20 @@ class UsersDataTablesEditor extends DataTablesEditor
1919
{
2020
protected $model = User::class;
2121
}
22+
```
23+
24+
## IMPORTANT
25+
26+
> Don't forget to set your model's fillable property. The Editor's basic crud operation relies on this.
27+
28+
```php
29+
namespace App;
30+
31+
class User extends Model {
32+
protected $fillable = [
33+
'name',
34+
'email',
35+
'password',
36+
];
37+
}
38+
```

0 commit comments

Comments
 (0)