WithFaker
trait WithFaker (View source)
Properties
| protected Generator | $faker | The Faker instance. |
Methods
void
setUpFaker()
Setup 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
protected void
setUpFaker()
Setup up the Faker instance.
protected Generator
faker(string|null $locale = null)
Get the default Faker instance for a given locale.
protected Generator
makeFaker(string|null $locale = null)
Create a Faker instance for the given locale.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.