Reference

Guide

V::errors()

Validates the given input with all passed rules and returns an array with all error messages.

V::errors(mixed $input, array $rules, array $messages = [ ]): array

Parameters

Name Type Default Description
$input mixed
$rules array
$messages array [ ]

Return type

array

Source code

kirby/src/Toolkit/V.php#L39