Closed eleftrik closed 4 months ago
2.0.0
Everything works as expected when using $this->faker->codiceFiscale() (for example, in a factory).
$this->faker->codiceFiscale()
However, when using fake()->codiceFiscale(), I get this error: InvalidArgumentException: Unknown format "codiceFiscale".
fake()->codiceFiscale()
InvalidArgumentException: Unknown format "codiceFiscale"
I was able to fix it by adding this line to a service provider (e.g. AppServiceProvider.php):
AppServiceProvider.php
fake()->addProvider(app(CodiceFiscaleFakerProvider::class));
I didn't open a PR because the example in README.md uses fake(), so it could only be a problem related to my application.
fake()
Thanks
You were right and the readme was wrong ;) Thank you!
Fixed in v2.0.1
Thanks @robertogallea for this wonderful package!
2.0.0
Everything works as expected when using
$this->faker->codiceFiscale()
(for example, in a factory).However, when using
fake()->codiceFiscale()
, I get this error:InvalidArgumentException: Unknown format "codiceFiscale"
.I was able to fix it by adding this line to a service provider (e.g.
AppServiceProvider.php
):fake()->addProvider(app(CodiceFiscaleFakerProvider::class));
I didn't open a PR because the example in README.md uses
fake()
, so it could only be a problem related to my application.Thanks