ValidationMessages class abstract final

Default validation messages (Laravel lang/en/validation.php parity) with an Indonesian translation as the second bundled locale.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

resolve(String key, {required String locale, required String attribute, Map<String, Object?> parameters = const {}, Map<String, String> overrides = const {}, int? laravelCompat}) → String
Resolves key for locale (falling back to en, then the key itself) and substitutes :attribute plus every entry of parameters.

Constants

legacyEnglish → const Map<String, String>
The English messages of Laravel 8 and 9 (The :attribute must be a string.) where they differ from 10 to 13, used under COMPAT_LARAVEL_VERSION 8 or 9. Source: laravel/laravel 9.x lang/en/validation.php (8.x resources/lang/en/validation.php has the same text for every rule it knows).
translations → const Map<String, Map<String, String>>
The messages by locale, then by rule name (required, min.string...), with :attribute, :min and other placeholders.