Skip to content

Commit 69fe2a6

Browse files
authored
[doc] fix typo (#146)
The method beforePersist from Factory class does not exist
1 parent 463d32a commit 69fe2a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ You can also add hooks directly in your model factory class:
494494
protected function initialize(): self
495495
{
496496
return $this
497-
->beforePersist(function() {})
497+
->afterPersist(function() {})
498498
;
499499
}
500500
```

0 commit comments

Comments
 (0)