WithFaker
trait WithFaker
Properties
| protected Generator|null | $faker | The Faker instance. |
Methods
void
setUpFaker()
Set up the Faker instance.
Generator
faker(string|null $locale = null)
Get the default Faker instance for a given locale.
Generator
makeFaker(string|null $locale = null)
Create a Faker instance for the given locale.
Details
at line 20
protected void
setUpFaker()
Set up the Faker instance.
at line 28
protected Generator
faker(string|null $locale = null)
Get the default Faker instance for a given locale.
at line 36
protected Generator
makeFaker(string|null $locale = null)
Create a Faker instance for the given locale.