Skip to content

Commit

Permalink
use modelName()
Browse files Browse the repository at this point in the history
  • Loading branch information
guidocella committed May 23, 2022
1 parent c3fad95 commit 8822aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ composer require --dev guidocella/eloquent-populator

## Model factory integration

Call `Populator::guessFormatters($this->model)` in your factories' `definition` methods to get an array with the guessed formatters. You may merge these with custom attributes whose guessed formatter isn't accurate.
Call `Populator::guessFormatters($this->modelName())` in your factories' `definition` methods to get an array with the guessed formatters. You may merge these with custom attributes whose guessed formatter isn't accurate.

```php
use GuidoCella\EloquentPopulator\Populator;
Expand Down

0 comments on commit 8822aef

Please sign in to comment.