Skip to content

Commit 07bf9b7

Browse files
committed
Update readme.md
1 parent 1cf1915 commit 07bf9b7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

readme.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@ class ReservationFactory extends Factory
237237

238238
### Factory Callbacks
239239

240-
Factory callbacks are registered using the `afterMaking` and `afterCreating` methods and allow
241-
you to perform additional tasks after making or creating a model. You should register these
242-
callbacks by defining a `configure` method on your factory class. This method will be
240+
Factory callbacks are registered using the `afterMaking` method and allow you to perform
241+
additional tasks after making or creating a class. You should register these callbacks
242+
by defining a `configure` method on your factory class. This method will be
243243
automatically called when the factory is instantiated:
244244

245245
```php
@@ -254,8 +254,6 @@ class ReservationFactory extends Factory
254254
{
255255
return $this->afterMaking(function (Reservation $reservation) {
256256
// ...
257-
})->afterCreating(function (Reservation $reservation) {
258-
// ...
259257
});
260258
}
261259
}

0 commit comments

Comments
 (0)