File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff 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
243243automatically 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}
You can’t perform that action at this time.
0 commit comments