FactoryBuilder::states()

$this states(array|dynamic $states) Set the states to be applied to the model. Parameters array|dynamic $states Return Value $this

FactoryBuilder::make()

mixed make(array $attributes = array()) Create a collection of models. Parameters array $attributes Return Value mixed

FactoryBuilder::create()

mixed create(array $attributes = array()) Create a collection of models and persist them to the database. Parameters array $attributes Return Value mixed

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 $attr

Factory::__construct()

void __construct(Request $request, Factory $view, TranslatorInterface $trans, string $pageName = 'page') Create a new pagination factory. Parameters Request $request Factory $view TranslatorInterface $trans string $pageName Return Value void

Factory::__construct()

void __construct(EngineResolver $engines, ViewFinderInterface $finder, Dispatcher $events) Create a new view factory instance. Parameters EngineResolver $engines ViewFinderInterface $finder Dispatcher $events Return Value void

Factory::__construct()

void __construct(TranslatorInterface $translator, Container $container = null) Create a new Validator factory instance. Parameters TranslatorInterface $translator Container $container Return Value void

Factory::__construct()

void __construct(Generator $faker) Create a new factory instance. Parameters Generator $faker Return Value void

Factory::yieldSection()

string yieldSection() Stop injecting content into a section and return its contents. Return Value string

Factory::yieldPushContent()

string yieldPushContent(string $section, string $default = '') Get the string contents of a push section. Parameters string $section string $default Return Value string