Factory::yieldContent()

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

Factory::validate()

void validate(array $data, array $rules, array $messages = array(), array $customAttributes = array()) Validate the given data against the provided rules. Parameters array $data array $rules array $messages array $customAttributes Return Value void Exceptions ValidationException

Factory::store()

mixed store(string|null $name = null) Get a cache store instance by name. Parameters string|null $name Return Value mixed

Factory::stopSection()

string stopSection(bool $overwrite = false) Stop injecting content into a section. Parameters bool $overwrite Return Value string Exceptions InvalidArgumentException

Factory::stopPush()

string stopPush() Stop injecting content into a push section. Return Value string Exceptions InvalidArgumentException

Factory::state()

void state(string $class, string $state, callable $attributes) Define a state with a given set of attributes. Parameters string $class string $state callable $attributes Return Value void

Factory::startSection()

void startSection(string $section, string $content = '') Start injecting content into a section. Parameters string $section string $content Return Value void

Factory::startPush()

void startPush(string $section, string $content = '') Start injecting content into a push section. Parameters string $section string $content Return Value void

Factory::shouldUse()

void shouldUse(string $name) Set the default guard the factory should serve. Parameters string $name Return Value void

Factory::shared()

mixed shared(string $key, mixed $default = null) Get an item from the shared data. Parameters string $key mixed $default Return Value mixed