trait WithFaker (View source)
protected Generator | $faker | The Faker instance. |
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. |
Setup up the Faker instance.
Get the default Faker instance for a given locale.
Create a Faker instance for the given locale.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Foundation/Testing/WithFaker.html