Factory
class Factory implements ArrayAccess (View source)
Methods
void __construct(Generator $faker) Create a new factory instance. static Factory construct(Generator $faker, string|null $pathToFactories = null) Create a new factory container. void defineAs(string $class, string $name, callable $attributes) Define a class with a given short-name. void define(string $class, callable $attributes, string $name = 'default') Define a class with a given set of attributes. voi