Factory::addLoop()

void addLoop(Countable|array $data) Add new loop to the stack. Parameters Countable|array $data Return Value void

Factory::addLocation()

void addLocation(string $location) Add a location to the array of view locations. Parameters string $location Return Value void

Factory::addExtension()

void addExtension(string $extension, string $engine, Closure $resolver = null) Register a valid view extension and its engine. Parameters string $extension string $engine Closure $resolver Return Value void

Factory

Factory class Factory (View source) Methods void __construct(Request $request, Factory $view, TranslatorInterface $trans, string $pageName = 'page') Create a new pagination factory. Paginator make(array $items, int $total, int|null $perPage = null) Get a new paginator instance. View getPaginationView(Paginator $paginator, string $view = null) Get the pagination view. int getCurrentPage() Get the number of the current page. void setCurrentPage(int $number) Set the numbe

Factory

Factory class Factory implements Factory (View source) Methods void __construct(EngineResolver $engines, ViewFinderInterface $finder, Dispatcher $events) Create a new view factory instance. View file(string $path, array $data = array(), array $mergeData = array()) Get the evaluated view contents for the given view. View make(string $view, array $data = array(), array $mergeData = array()) Get the evaluated view contents for the given view. View of(string $view, mixed $data

Factory

Factory class Factory implements Factory (View source) Methods void __construct(TranslatorInterface $translator, Container $container = null) Create a new Validator factory instance. Validator make(array $data, array $rules, array $messages = array(), array $customAttributes = array()) Create a new Validator instance. void validate(array $data, array $rules, array $messages = array(), array $customAttributes = array()) Validate the given data against the provided rules. void

Factory

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

Factory

Factory interface Factory (View source) Methods bool exists(string $view) Determine if a given view exists. View file(string $path, array $data = array(), array $mergeData = array()) Get the evaluated view contents for the given path. View make(string $view, array $data = array(), array $mergeData = array()) Get the evaluated view contents for the given view. mixed share(array|string $key, mixed $value = null) Add a piece of shared data to the environment. array compos

Factory

Factory interface Factory (View source) Methods Validator make(array $data, array $rules, array $messages = array(), array $customAttributes = array()) Create a new Validator instance. void extend(string $rule, Closure|string $extension, string $message = null) Register a custom validator extension. void extendImplicit(string $rule, Closure|string $extension, string $message = null) Register a custom implicit validator extension. void replacer(string $rule, Closure|string $

Factory

Factory interface Factory (View source) Methods Queue connection(string $name = null) Resolve a queue connection instance.