FactoryBuilder

FactoryBuilder

class FactoryBuilder (View source)

Methods

void __construct(string $class, string $name, array $definitions, array $states, Generator $faker)

Create an new builder instance.

$this times(int $amount)

Set the amount of models you wish to create / make.

$this states(array|dynamic $states)

Set the states to be applied to the model.

mixed create(array $attributes = array())

Create a collection of models and persist them to the database.

mixed make(array $attributes = array())

Create a collection of models.

doc_Laravel
2016-11-02 16:18:10
Comments
Leave a Comment

Please login to continue.