trait
Illuminate
/
Foundation
/
Testing
/
WithFaker
You are viewing an older version of the documentation. For the latest, please visit master documentation.
WithFaker
Properties
protected
$faker Faker\Generator
The Faker instance.
Default: null
Methods
protected
setUpFaker ( ) : void
Setup up the Faker instance.
protected
faker ( $locale ) : Faker\Generator
Get the default Faker instance for a given locale.
Parameters
- $locale string|null
protected
makeFaker ( $locale ) : Faker\Generator
Create a Faker instance for the given locale.
Parameters
- $locale string|null