Skip to content

Commit 4bb4e3b

Browse files
committed
Update readme.md
1 parent 18a0d83 commit 4bb4e3b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

readme.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,6 @@ The `HasFactory` trait is applied directly to the class you would like to genera
8585

8686
To use the `HasFactory` trait, you must implement the `toFactoryInstance` and `getFactoryDefinition` methods:
8787

88-
> [!note]
89-
> The `HasFactory` trait supports dynamic state methods. You can define state methods in the format `get{StateName}State` and call them via `Class::factory()->stateName()->make()`.
90-
> For more complex factory logic or callbacks, you should define a separate `Factory` class instead.
91-
9288
```php
9389
namespace App\Data;
9490

@@ -143,7 +139,7 @@ $factory = Reservation::factory();
143139

144140
#### Dynamic State Methods
145141

146-
The `HasFactory` trait supports dynamic state methods. You can define state methods in your class using the format `get{StateName}State` and call them dynamically on the factory:
142+
The `HasFactory` trait supports defining dynamic state methods. You can define state methods in your class using the format `get{StateName}State` and call them dynamically on the factory:
147143

148144
```php
149145
namespace App\Data;

0 commit comments

Comments
 (0)