Méthode | Description | |
---|---|---|
__construct ( $errorData ) | ||
__get ( $name ) | ||
__toString ( ) | ||
count ( ) : integer | Return count of items in collection Implements countable | |
deepAll ( ) | Returns all of the validation errors at all levels of nesting in a single, flat array. | |
deepSize ( ) : integer | Returns the total number of validation errors at all levels of nesting. For example, if creating a customer with a credit card and a billing address, and each of the customer, credit card, and billing address has 1 error, this method will return 3. | |
forKey ( string $key ) : mixed | return errors for the passed key name | |
onHtmlField ( string $field ) : array | return errors for the passed html field. | |
shallowAll ( ) | Returns the errors at the given nesting level (see forKey) in a single, flat array: |
public deepAll ( ) |
public onHtmlField ( string $field ) : array | ||
$field | string | |
Résultat | array |
$result = Customer::create(...);
$customerErrors = $result->errors->forKey('customer')->shallowAll();
public shallowAll ( ) |