Documentation

WithFaker

Table of Contents

$faker  : Generator
The Faker instance.
faker()  : Generator
Get the default Faker instance for a given locale.
makeFaker()  : Generator
Create a Faker instance for the given locale.
setUpFaker()  : void
Setup up the Faker instance.

Properties

$faker

The Faker instance.

protected Generator $faker

Methods

faker()

Get the default Faker instance for a given locale.

protected faker([string $locale = null ]) : Generator
Parameters
$locale : string = null
Return values
Generator

makeFaker()

Create a Faker instance for the given locale.

protected makeFaker([string $locale = null ]) : Generator
Parameters
$locale : string = null
Return values
Generator

setUpFaker()

Setup up the Faker instance.

protected setUpFaker() : void
Return values
void

Search results