Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amdad121 committed Dec 31, 2023
1 parent 3b3948b commit 83ef5f9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Schema::create('users', function (Blueprint $table) {
});
```

Now this traits add on your model.
Now this traits add on your model and add fillable property.

```php
<?php
Expand All @@ -40,6 +40,13 @@ use AmdadulHaq\RecordActivity\RecordActivity;
class User extends Model
{
use CreatedByAndUpdatedBy, DeletedBy;

protected $fillable = [
// ...
'created_by',
'updated_by',
'deleted_by',
];
}
```

Expand Down

0 comments on commit 83ef5f9

Please sign in to comment.