void defineAs(string $class, string $name, callable $attributes) Define a class with a given short-name. Parameters string $class string $name callable $attributes Return Value void
void define(string $class, callable $attributes, string $name = 'default') Define a class with a given set of attributes. Parameters string $class callable $attributes string $name Return Value void
void decrementRender() Decrement the rendering counter. Return Value void
array creator(array|string $views, Closure|string $callback) Register a view creator event. Parameters array|string $views Closure|string $callback Return Value array
mixed createAs(string $class, string $name, array $attributes = array()) Create an instance of the given model and type and persist it to the database. Parameters string $class string $name array $attributes Return Value mixed
mixed create(string $class, array $attributes = array()) Create an instance of the given model and persist it to the database. Parameters string $class array $attributes Return Value mixed
static Factory construct(Generator $faker, string|null $pathToFactories = null) Create a new factory container. Parameters Generator $faker string|null $pathToFactories Return Value Factory
Queue connection(string $name = null) Resolve a queue connection instance. Parameters string $name Return Value Queue
void connection(string $name = null) Get a broadcaster implementation by name. Parameters string $name Return Value void
Page 686 of 996